From ea765ba5737074dcffc67be20d33a7f01890dd7f Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Fri, 26 Aug 2011 18:39:32 +0200 Subject: Simplify KItemListSelectionManager 1. The anchorChanged() signal is not needed. 2. The only place where setAnchorItem() is called is in beginAnchoredSelection() -> merge both functions. --- src/kitemviews/kitemlistselectionmanager.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/kitemviews/kitemlistselectionmanager.h') 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& current, const QSet& previous); - void anchorChanged(int anchor, int previous); private: void setModel(KItemModelBase* model); -- cgit v1.3.1