summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-24 10:15:57 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-24 10:15:57 +0200
commitfc4be6ded391793bd6985464a4e91d42d4242cf1 (patch)
treeee9158802034cc30bf1d0ead8bdaefea2ecf1935
parentrekonq 0.2.52 (diff)
downloadrekonq-fc4be6ded391793bd6985464a4e91d42d4242cf1.tar.xz
Middle click closes tab
-rw-r--r--src/mainview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index c6be22e9..9dfa797d 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -77,6 +77,8 @@ MainView::MainView(QWidget *parent)
// connecting tabbar signals
connect(m_tabBar, SIGNAL(closeTab(int)), this, SLOT(slotCloseTab(int)));
+ connect(m_tabBar, SIGNAL(mouseMiddleClick(int)), this, SIGNAL(slotCloseTab(int)));
+
connect(m_tabBar, SIGNAL(cloneTab(int)), this, SLOT(slotCloneTab(int)));
connect(m_tabBar, SIGNAL(closeOtherTabs(int)), this, SLOT(slotCloseOtherTabs(int)));
connect(m_tabBar, SIGNAL(reloadTab(int)), this, SLOT(slotReloadTab(int)));