┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistselectionmanager.h
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2011-08-26 18:39:32 +0200
committerFrank Reininghaus <[email protected]>2011-08-26 18:39:32 +0200
commitea765ba5737074dcffc67be20d33a7f01890dd7f (patch)
tree186a9788ce9a3870586d69bcc65904b01484c72a /src/kitemviews/kitemlistselectionmanager.h
parentb43316297edb9e84b894ef60ed2ea10c440d47e3 (diff)
Simplify KItemListSelectionManager
1. The anchorChanged() signal is not needed. 2. The only place where setAnchorItem() is called is in beginAnchoredSelection() -> merge both functions.
Diffstat (limited to 'src/kitemviews/kitemlistselectionmanager.h')
-rw-r--r--src/kitemviews/kitemlistselectionmanager.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/kitemviews/kitemlistselectionmanager.h b/src/kitemviews/kitemlistselectionmanager.h
index f8c33bb79..2761940f5 100644
--- a/src/kitemviews/kitemlistselectionmanager.h
+++ b/src/kitemviews/kitemlistselectionmanager.h
@@ -61,16 +61,7 @@ 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;
KItemModelBase* model() const;
@@ -78,7 +69,6 @@ public:
signals:
void currentChanged(int current, int previous);
void selectionChanged(const QSet<int>& current, const QSet<int>& previous);
- void anchorChanged(int anchor, int previous);
private:
void setModel(KItemModelBase* model);