Middle-clicking on tabs will now close them.

svn path=/trunk/KDE/kdebase/apps/; revision=924467
This commit is contained in:
Shaun Reich 2009-02-10 20:48:16 +00:00
parent 3cfeee94d4
commit 5cec8a2dd9

View file

@ -907,6 +907,8 @@ void DolphinMainWindow::init()
this, SLOT(slotTestCanDecode(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))); this, SLOT(slotWheelMoved(int)));
connect(m_tabBar, SIGNAL(mouseMiddleClick(int)),
this, SLOT(closeTab(int)));
m_tabBar->blockSignals(true); // signals get unblocked after at least 2 tabs are open m_tabBar->blockSignals(true); // signals get unblocked after at least 2 tabs are open