diff options
-rw-r--r-- | src/tabbar.cpp | 8 | ||||
-rw-r--r-- | src/tabbar.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 1ab357f2..d2e0ff17 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -87,6 +87,7 @@ TabBar::TabBar(QWidget *parent) connect(this, SIGNAL(contextMenu(int, const QPoint &)), this, SLOT(contextMenu(int, const QPoint &))); connect(this, SIGNAL(emptyAreaContextMenu(const QPoint &)), this, SLOT(emptyAreaContextMenu(const QPoint &))); + connect(this, SIGNAL(tabMoved(int,int)), this, SLOT(tabMoved(int,int))); connect(m_animationMapper, SIGNAL(mapped(int)), this, SLOT(removeAnimation(int))); setGraphicsEffect(m_tabHighlightEffect); @@ -303,6 +304,13 @@ void TabBar::mousePressEvent(QMouseEvent *event) } +void TabBar::tabMoved(int, int) +{ + MainView *mv = qobject_cast<MainView *>(parent()); + QTimer::singleShot(200, mv, SIGNAL(tabsChanged())); +} + + void TabBar::contextMenu(int tab, const QPoint &pos) { setupHistoryActions(); diff --git a/src/tabbar.h b/src/tabbar.h index c7bf88e6..5d4c6d63 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -94,6 +94,7 @@ private slots: void contextMenu(int, const QPoint &); void emptyAreaContextMenu(const QPoint &); + void tabMoved(int, int); void showTabPreview(); |