]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Remove custom handling of wheel-events for tabs, this is done now in KTabBar
authorPeter Penz <peter.penz19@gmail.com>
Sat, 4 Sep 2010 13:56:16 +0000 (13:56 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 4 Sep 2010 13:56:16 +0000 (13:56 +0000)
CCBUG: 248962

svn path=/trunk/KDE/kdebase/apps/; revision=1171577

src/dolphinmainwindow.cpp
src/dolphinmainwindow.h

index e58b81740730e8566740dc0fb6c18e28913b2427..73f89455482f1663ef7122113a76c9a193ac3c34 100644 (file)
@@ -335,15 +335,6 @@ void DolphinMainWindow::slotSelectionChanged(const KFileItemList& selection)
     emit selectionChanged(selection);
 }
 
-void DolphinMainWindow::slotWheelMoved(int wheelDelta)
-{
-    if (wheelDelta > 0) {
-        activatePrevTab();
-    } else {
-        activateNextTab();
-    }
-}
-
 void DolphinMainWindow::slotRequestItemInfo(const KFileItem& item)
 {
     emit requestItemInfo(item);
@@ -1241,8 +1232,6 @@ void DolphinMainWindow::init()
             this, SLOT(openNewTab()));
     connect(m_tabBar, SIGNAL(testCanDecode(const QDragMoveEvent*, bool&)),
             this, SLOT(slotTestCanDecode(const QDragMoveEvent*, bool&)));
-    connect(m_tabBar, SIGNAL(wheelDelta(int)),
-            this, SLOT(slotWheelMoved(int)));
     connect(m_tabBar, SIGNAL(mouseMiddleClick(int)),
             this, SLOT(closeTab(int)));
     connect(m_tabBar, SIGNAL(tabMoved(int, int)),
index b9dbe9f9d1556d099ac0b2d3307870b506ac1945..a1f89c512a1a70f961ee832b1d88aa1fda181611 100644 (file)
@@ -318,9 +318,6 @@ private slots:
      */
     void slotSelectionChanged(const KFileItemList& selection);
 
-    /** Enables changing of tabs via mouse wheel. */
-    void slotWheelMoved(int wheelDelta);
-
     /** Emits the signal requestItemInfo(). */
     void slotRequestItemInfo(const KFileItem&);