From c039fcb3c2be73bf6c95012b3e5f5f53ef1b42e3 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 27 Aug 2009 13:54:14 +0200 Subject: New tab button code improvements. Patch from Johannes Zellner (thanks) --- src/tabbar.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tabbar.h') diff --git a/src/tabbar.h b/src/tabbar.h index 854469b4..a86ba4d6 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -35,6 +35,7 @@ // Forward Declarations class QPoint; +class QToolButton; /** * Tab bar with a few more features such as @@ -63,6 +64,7 @@ protected: * Added to fix tab dimension */ virtual QSize tabSizeHint(int index) const; + virtual void tabLayoutChange(); private slots: void cloneTab(); @@ -70,11 +72,15 @@ private slots: void closeOtherTabs(); void reloadTab(); void contextMenuRequested(const QPoint &position); + void postLaunch(); private: friend class MainView; + void setTabButtonPosition(); + QWidget *m_parent; + QToolButton *m_addTabButton; /** * the index in which we are seeing a Context menu -- cgit v1.2.1