diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2012-08-05 14:22:44 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-08-14 17:47:41 +0200 |
commit | 604a10c4fc3e927e0e3265dc37e163366e00cd86 (patch) | |
tree | eb76089c9c149dec65de9bd59b0391eb0eac67b0 /src/tabbar.h | |
parent | Get sure rekonq makes use of djvu plugin (diff) | |
download | rekonq-604a10c4fc3e927e0e3265dc37e163366e00cd86.tar.xz |
* Split updateTabBar() into two separate methods
- updateTabBarVisibility(): used to react only on "alwaysShowTabBar" settings
- updateAddTabButton(): used to react only on tabbar changes
* Improve handling of the add tab button. updateAddTabButton() is now called on any
tab layout changed instead of being called in any function which manipulate tabs.
* Use a tab height computed with KTabBar instead of the add tab button height with a magical number.
It fixes some issues with the Bespin theme.
BUG: 304325
Diffstat (limited to 'src/tabbar.h')
-rw-r--r-- | src/tabbar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tabbar.h b/src/tabbar.h index 161612c2..6bdbdc09 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -74,6 +74,7 @@ Q_SIGNALS: void reloadTab(int index); void reloadAllTabs(); void detachTab(int index); + void tabLayoutChanged(); protected: /** @@ -87,6 +88,7 @@ protected: virtual void leaveEvent(QEvent *event); virtual void mousePressEvent(QMouseEvent *event); + virtual void tabLayoutChange(); virtual void tabRemoved(int index); void dropEvent(QDropEvent *event); void dragEnterEvent(QDragEnterEvent *event); |