From 2e3b7e6dd3b051b3d9cb9799e1dd22f8376d2957 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Wed, 10 Aug 2011 13:53:41 +0200 Subject: Always use the 'Select' mode for anchored selections In Dolphin, we don't actually use the 'Deselect' and 'Toggle' modes for anchored selections, so we can just remove these modes and always use 'Select' to reduce code complexity. --- src/tests/kitemlistselectionmanagertest.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/tests') diff --git a/src/tests/kitemlistselectionmanagertest.cpp b/src/tests/kitemlistselectionmanagertest.cpp index 2832a4c76..9063b7884 100644 --- a/src/tests/kitemlistselectionmanagertest.cpp +++ b/src/tests/kitemlistselectionmanagertest.cpp @@ -96,8 +96,6 @@ void KItemListSelectionManagerTest::testCurrentItemAnchorItem() m_selectionManager->setAnchoredSelectionActive(true); QVERIFY(m_selectionManager->isAnchoredSelectionActive()); - m_selectionManager->setAnchoredSelectionMode(KItemListSelectionManager::Select); - QCOMPARE(m_selectionManager->anchoredSelectionMode(), KItemListSelectionManager::Select); // Set current item and check that the selection manager emits the currentChanged(int,int) signal correctly. m_selectionManager->setCurrentItem(4); -- cgit v1.3