┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-01-30 06:13:11 +0000
committerPeter Penz <[email protected]>2009-01-30 06:13:11 +0000
commit20332788152516f83eb4861fcb2bac7a68667be7 (patch)
tree9e9fc51a8ae3fef817e958243f405b9414d21d05 /src/dolphinmainwindow.cpp
parent6a0898178cca75c5808620d8bc1ea932a406f5fe (diff)
minor coding style fixes (http://techbase.kde.org/Policies/Kdelibs_Coding_Style):
* use spaces instead of tabs * correct braces CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=918537
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 077005c0f..f623d5eba 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -266,15 +266,12 @@ void DolphinMainWindow::slotSelectionChanged(const KFileItemList& selection)
emit selectionChanged(selection);
}
-void DolphinMainWindow::slotWheelMoved(int wheeldelta)
+void DolphinMainWindow::slotWheelMoved(int wheelDelta)
{
- if (wheeldelta > 0)
- {
- //Non-negative, wheel is going forwards, so the tab goes backwards (focuses left)
- activatePrevTab();
- } else
- {
- activateNextTab();
+ 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);