Review & fixes
[situare] / src / ui / friendlistpanel.h
index e88abfc..49d0ccb 100644 (file)
@@ -65,7 +65,7 @@ protected:
     /**
     * @brief Re-implemented from QWidget::hideEvent()
     *
-    * Calls updateKeyboardGrabbing().
+    * Calls updateKeyboardGrabbing() and clearFriendGroupFiltering().
     *
     * @param event
     */
@@ -119,9 +119,10 @@ 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.
+    * Does call clearFriendGroupFiltering().
+    *
+    * 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();
 
@@ -134,11 +135,20 @@ private slots:
     void anyPanelOpened();
 
     /**
-    * @brief Slot for clearing the friend list filtering.
+    * @brief Slot for clearing the filtering
+    *
+    * Clears friend group (or single friend) filtering and calls clearTextFiltering().
     */
     void clearFiltering();
 
     /**
+    * @brief Slot for clearing the text based filtering.
+    *
+    * Does clear only the text based filtering. Friend group based filtering is not affected.
+    */
+    void clearTextFiltering();
+
+    /**
     * @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