summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qtabbar.h
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2012-06-28 21:04:54 +0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-13 19:28:31 +0200
commit252bad7c589e03d3e12df02354b00a84d8e3159a (patch)
tree9e572c1704028e4c0d343c63801f4a5d0e8a9627 /src/widgets/widgets/qtabbar.h
parent91e86688fc119e1bb67fd40ab30101015ddb638b (diff)
Add useful signals to QTabBar and QTabWidget
In this patch we introduce tabBarClicked and tabBarDoubleClicked to get a finer grained information on the user interaction with the tab bar. Done-with: kevin.ottens@kdab.com Change-Id: I7be76a556ca09186e98f2e076fe2512d6c5e6773 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src/widgets/widgets/qtabbar.h')
-rw-r--r--src/widgets/widgets/qtabbar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets/widgets/qtabbar.h b/src/widgets/widgets/qtabbar.h
index 72c19ab520..1f7b8f6b03 100644
--- a/src/widgets/widgets/qtabbar.h
+++ b/src/widgets/widgets/qtabbar.h
@@ -173,6 +173,8 @@ Q_SIGNALS:
void currentChanged(int index);
void tabCloseRequested(int index);
void tabMoved(int from, int to);
+ void tabBarClicked(int index);
+ void tabBarDoubleClicked(int index);
protected:
virtual QSize tabSizeHint(int index) const;
@@ -186,6 +188,7 @@ protected:
void showEvent(QShowEvent *);
void hideEvent(QHideEvent *);
void paintEvent(QPaintEvent *);
+ void mouseDoubleClickEvent(QMouseEvent *);
void mousePressEvent (QMouseEvent *);
void mouseMoveEvent (QMouseEvent *);
void mouseReleaseEvent (QMouseEvent *);