summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2012-08-05 14:22:44 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-08-14 17:47:41 +0200
commit604a10c4fc3e927e0e3265dc37e163366e00cd86 (patch)
treeeb76089c9c149dec65de9bd59b0391eb0eac67b0 /src/tabbar.cpp
parentGet sure rekonq makes use of djvu plugin (diff)
downloadrekonq-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.cpp')
-rw-r--r--src/tabbar.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index ac257d12..2f0803f8 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -131,7 +131,7 @@ QSize TabBar::tabSizeHint(int index) const
}
}
- int h = view->addTabButton()->height() + 6;
+ int h = KTabBar::tabSizeHint(index).height();
QSize ts = QSize(w, h);
return ts;
@@ -552,3 +552,10 @@ bool TabBar::isURLValid(const QString &url)
isValid = true;
return isValid;
}
+
+
+void TabBar::tabLayoutChange()
+{
+ KTabBar::tabLayoutChange();
+ emit tabLayoutChanged();
+}