summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-09 00:47:31 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-09 00:47:31 +0200
commitdaa66b3a0897333d986600d0bbb89772fbdd34d1 (patch)
tree862321a2f268e2a35cdb28eff675ac559e5159d2 /src/tabbar.cpp
parentHey, we are classes! No really need to be friends.. :) (diff)
downloadrekonq-daa66b3a0897333d986600d0bbb89772fbdd34d1.tar.xz
- Some things in the right position
- some comments gone, some added
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index 5c1bc076..651265d1 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -56,9 +56,13 @@ TabBar::TabBar(QWidget *parent)
, m_addTabButton(new QToolButton(this))
{
setElideMode(Qt::ElideRight);
- setContextMenuPolicy(Qt::CustomContextMenu);
+
setDocumentMode(true);
+ setTabsClosable(true);
setMovable(true);
+
+ setContextMenuPolicy(Qt::CustomContextMenu);
+
connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this,
SLOT(contextMenuRequested(const QPoint &)));