From 491f63610fc9f74ca8097a516347f1399cbc71c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Ander=20Pe=C3=B1alba?= Date: Tue, 30 Nov 2010 22:04:41 +0100 Subject: Show and hide the add-tab button automatically --- src/tabbar.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/tabbar.h') 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); -- cgit v1.2.1