diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-09 00:47:31 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-09 00:47:31 +0200 |
commit | daa66b3a0897333d986600d0bbb89772fbdd34d1 (patch) | |
tree | 862321a2f268e2a35cdb28eff675ac559e5159d2 /src/tabbar.cpp | |
parent | Hey, we are classes! No really need to be friends.. :) (diff) | |
download | rekonq-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.cpp | 6 |
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 &))); |