Mercurial > hg > svgui
comparison widgets/NotifyingTabBar.h @ 1414:fa986b91d77f
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:51 +0000 |
parents | 05d614f6e46d |
children |
comparison
equal
deleted
inserted
replaced
1413:0930a27ebea2 | 1414:fa986b91d77f |
---|---|
11 published by the Free Software Foundation; either version 2 of the | 11 published by the Free Software Foundation; either version 2 of the |
12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
14 */ | 14 */ |
15 | 15 |
16 #ifndef _NOTIFYING_TAB_BAR_H_ | 16 #ifndef SV_NOTIFYING_TAB_BAR_H |
17 #define _NOTIFYING_TAB_BAR_H_ | 17 #define SV_NOTIFYING_TAB_BAR_H |
18 | 18 |
19 #include <QTabBar> | 19 #include <QTabBar> |
20 | 20 |
21 class NotifyingTabBar : public QTabBar | 21 class NotifyingTabBar : public QTabBar |
22 { | 22 { |
30 void mouseEntered(); | 30 void mouseEntered(); |
31 void mouseLeft(); | 31 void mouseLeft(); |
32 void activeTabClicked(); | 32 void activeTabClicked(); |
33 | 33 |
34 protected: | 34 protected: |
35 virtual void mousePressEvent(QMouseEvent *); | 35 void mousePressEvent(QMouseEvent *) override; |
36 virtual void enterEvent(QEvent *); | 36 void enterEvent(QEvent *) override; |
37 virtual void leaveEvent(QEvent *); | 37 void leaveEvent(QEvent *) override; |
38 }; | 38 }; |
39 | 39 |
40 #endif | 40 #endif |