summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
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 &)));