]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemlistselectionmanager.h
Avoid emitting twice twice selectionChanged when keyboard changes the selection,...
[dolphin.git] / src / kitemviews / kitemlistselectionmanager.h
index 4bb503a802bdd4b3a1108f19a80a43b6e8085dde..6f57100066029ee9704da3a6b41f2fb028aeae37 100644 (file)
@@ -62,6 +62,13 @@ public:
     bool hasSelection() const;
 
     void setSelected(int index, int count = 1, SelectionMode mode = Select);
+    /**
+     * Equivalent to:
+     * clearSelection();
+     * setSelected(index, count);
+     * but emitting once only selectionChanged signal
+     */
+    void replaceSelection(int index, int count = 1);
     void clearSelection();
 
     void beginAnchoredSelection(int anchor);