summaryrefslogtreecommitdiff
path: root/src/tabbar.h
diff options
context:
space:
mode:
authorJon Ander Peñalba <jonan88@gmail.com>2010-11-30 22:04:41 +0100
committerJon Ander Peñalba <jonan88@gmail.com>2010-11-30 22:04:41 +0100
commit491f63610fc9f74ca8097a516347f1399cbc71c2 (patch)
tree6eb71f8db630de6e510af44441656443da68758b /src/tabbar.h
parentPort SearchEngine from somewhat unsafe "naked" static variables to (diff)
downloadrekonq-491f63610fc9f74ca8097a516347f1399cbc71c2.tar.xz
Show and hide the add-tab button automatically
Diffstat (limited to 'src/tabbar.h')
-rw-r--r--src/tabbar.h6
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);