]> cloud.milkyroute.net Git - dolphin.git/commitdiff
minor coding style fixes (http://techbase.kde.org/Policies/Kdelibs_Coding_Style):
authorPeter Penz <peter.penz19@gmail.com>
Fri, 30 Jan 2009 06:13:11 +0000 (06:13 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Fri, 30 Jan 2009 06:13:11 +0000 (06:13 +0000)
* use spaces instead of tabs
* correct braces

CCMAIL: predator106@gmail.com

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

src/dolphinmainwindow.cpp
src/dolphinmainwindow.h

index 077005c0fe49df1ede96cd9b6a437933918ac4b1..f623d5eba8cd78014d84a6c35a330cd88bd53aa6 100644 (file)
@@ -266,15 +266,12 @@ void DolphinMainWindow::slotSelectionChanged(const KFileItemList& selection)
     emit selectionChanged(selection);
 }
 
-void DolphinMainWindow::slotWheelMoved(int wheeldelta) 
-{
-    if (wheeldelta > 0)
-    {  
-       //Non-negative, wheel is going forwards, so the tab goes backwards (focuses left)
-       activatePrevTab();
-    } else
-    {  
-       activateNextTab();
+void DolphinMainWindow::slotWheelMoved(int wheelDelta)
+{
+    if (wheelDelta > 0) {
+        activatePrevTab();
+    } else {
+        activateNextTab();
     }
 }
 
@@ -908,9 +905,9 @@ 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)), 
+    connect(m_tabBar, SIGNAL(wheelDelta(int)),
            this, SLOT(slotWheelMoved(int)));
-           
+
     m_tabBar->blockSignals(true);  // signals get unblocked after at least 2 tabs are open
 
     QWidget* centralWidget = new QWidget(this);
index f9eb5ccede3ed72ed5681709da278a20b03f1dcd..885610b9fec54af9ebed3fdb7c7a3f6d0b578930 100644 (file)
@@ -287,7 +287,7 @@ private slots:
      * we look to see if it's negative (backwards) or positive (forwards).
      * Enables changing of tabs via mouse wheel.
      */
-    void slotWheelMoved(int wheeldelta);
+    void slotWheelMoved(int wheelDelta);
 
     /** Emits the signal requestItemInfo(). */
     void slotRequestItemInfo(const KFileItem&);
@@ -349,7 +349,7 @@ private slots:
      */
     void closeTab(int index);
 
-   
+
     /**
      * Opens a context menu for the tab with the index \a index
      * on the position \a pos.