┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistselectionmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kitemviews/kitemlistselectionmanager.h')
-rw-r--r--src/kitemviews/kitemlistselectionmanager.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/kitemviews/kitemlistselectionmanager.h b/src/kitemviews/kitemlistselectionmanager.h
index dd4c3e4fc..f8c33bb79 100644
--- a/src/kitemviews/kitemlistselectionmanager.h
+++ b/src/kitemviews/kitemlistselectionmanager.h
@@ -61,11 +61,17 @@ public:
void beginAnchoredSelection(int anchor);
void endAnchoredSelection();
+
+ /**
+ * Sets the anchor to \a anchor and emits anchorChanged() if the
+ * anchor differs from the current anchor value. If no anchor selection is active (see
+ * KItemListSelectionManager::beginAnchoredSelection()) or the index
+ * is not within the available model items the anchor will not be modified.
+ */
void setAnchorItem(int anchor);
int anchorItem() const;
bool isAnchoredSelectionActive() const;
- void setAnchoredSelectionActive(bool active);
KItemModelBase* model() const;