diff options
author | Jon Ander Peñalba <jonan88@gmail.com> | 2010-11-30 22:04:41 +0100 |
---|---|---|
committer | Jon Ander Peñalba <jonan88@gmail.com> | 2010-11-30 22:04:41 +0100 |
commit | 491f63610fc9f74ca8097a516347f1399cbc71c2 (patch) | |
tree | 6eb71f8db630de6e510af44441656443da68758b /src/tabbar.h | |
parent | Port SearchEngine from somewhat unsafe "naked" static variables to (diff) | |
download | rekonq-491f63610fc9f74ca8097a516347f1399cbc71c2.tar.xz |
Show and hide the add-tab button automatically
Diffstat (limited to 'src/tabbar.h')
-rw-r--r-- | src/tabbar.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tabbar.h b/src/tabbar.h index a80776e1..acd8e2fb 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -51,8 +51,8 @@ class REKONQ_TESTS_EXPORT TabBar : public KTabBar Q_OBJECT public: - TabBar(QWidget *parent); - ~TabBar(); + explicit TabBar(QWidget *parent); + virtual ~TabBar() {} signals: void cloneTab(int index); @@ -68,6 +68,8 @@ protected: */ virtual QSize tabSizeHint(int index) const; + virtual void hideEvent(QHideEvent *event); + virtual void showEvent(QShowEvent *event); virtual void mouseMoveEvent(QMouseEvent *event); virtual void leaveEvent(QEvent *event); virtual void mousePressEvent(QMouseEvent *event); |