Documenting
authorSami Rämö <sami.ramo@ixonos.com>
Tue, 17 Aug 2010 07:01:58 +0000 (10:01 +0300)
committerSami Rämö <sami.ramo@ixonos.com>
Tue, 17 Aug 2010 07:01:58 +0000 (10:01 +0300)
src/engine/engine.h
src/ui/friendlistpanel.h

index 524bac4..71bfc7a 100644 (file)
@@ -297,7 +297,7 @@ private slots:
     *
     * Does set power saving state.
     *
-    * @param mainWindowIsTopmost True if MainWindow is the topmost one
+    * @param isMainWindow True if MainWindow is the topmost one
     */
     void topmostWindowChanged(bool isMainWindow);
 
index d9ee9d3..e88abfc 100644 (file)
@@ -100,7 +100,7 @@ public slots:
 
 private:
     /**
-    * @brief Set visibility for filtering related UI elements
+    * @brief Set visibility for filtering text field and clearing button
     *
     * @param visible True if items should be visible, false if not
     */
@@ -109,15 +109,28 @@ private:
     /**
     * @brief Takes care of grabbing and releasing the keyboard when required
     *
-    * Keyboard is grabbed when MainWindow it the topmost window and FriendListPanel is visible.
-    * Releasing is done if the MainWindow is not the topmost window and/or FriendListPanel
-    * is invisible.
+    * Keyboard is grabbed when MainWindow it the topmost window, panel tab is open and
+    * FriendListPanel is visible. Releasing is done if the MainWindow is not the topmost window
+    * or panel tab is not open or FriendListPanel is invisible.
     */
     void updateKeyboardGrabbing();
 
 private slots:
+    /**
+    * @brief Called when any of the panel tabs is closed
+    *
+    * Does clear the filtering. Calls updateKeyboardGrabbing() for releasing the grabbing when
+    * FriendListPanel is closed, not changed to other panel. In this case the hideEvent() is
+    * not triggered.
+    */
     void anyPanelClosed();
 
+    /**
+    * @brief Called when any of the panel tabs is opened
+    *
+    * Calls updateKeyboardGrabbing() for grabbing the keyboard when FriendListPanel is closed and
+    * is the last selected tab. In this case the showEvent() is not triggered.
+    */
     void anyPanelOpened();
 
     /**
@@ -126,11 +139,13 @@ private slots:
     void clearFiltering();
 
     /**
-    * @brief Set filtering UI elements visibility based on the filtering text value
+    * @brief Updates the filtering when filtering text value is changed
     *
     * Filtering UI elements are invoked when the text becomes not empty and hidden when text
     * becomes empty.
     *
+    * Sets the new filtering text.
+    *
     * @param text New text value
     */
     void filterTextChanged(const QString &text);
@@ -189,7 +204,7 @@ signals:
  ******************************************************************************/
 private:
     bool m_mainWindowIsTopmost;         ///< Is the MainWindow the topmost one
-    bool m_somePanelIsOpen;
+    bool m_somePanelIsOpen;             ///< Is any panel tab open
 
     QLabel *m_friendListLabel;          ///< Friend list label