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();
}
}
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);
* 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&);
*/
void closeTab(int index);
-
+
/**
* Opens a context menu for the tab with the index \a index
* on the position \a pos.