Skip to content

Commit

Permalink
fix: connect signals for DTabBar
Browse files Browse the repository at this point in the history
Change-Id: I7e841d1994353b2b2d6143189f1a738947578a03
  • Loading branch information
zccrs committed Jan 5, 2018
1 parent 2f44cd2 commit 44057f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/widgets/dtabbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ class DTabBarPrivate : public QTabBar, public DObjectPrivate
layout->addStretch();

qq->setFocusProxy(this);

connect(this, &DTabBarPrivate::currentChanged, qq, &DTabBar::currentChanged);
connect(this, &DTabBarPrivate::tabCloseRequested, qq, &DTabBar::tabCloseRequested);
connect(this, &DTabBarPrivate::tabMoved, qq, &DTabBar::tabMoved);
connect(this, &DTabBarPrivate::tabBarClicked, qq, &DTabBar::tabBarClicked);
connect(this, &DTabBarPrivate::tabBarDoubleClicked, qq, &DTabBar::tabBarDoubleClicked);
}

void moveTabOffset(int index, int offset)
Expand Down

0 comments on commit 44057f4

Please sign in to comment.