diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-06-12 00:24:50 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-06-12 00:30:22 +0200 |
commit | 0e2b60b4af86af076a034efe0c9ee584805d1dba (patch) | |
tree | fd954cd90b049ba94714b37c9e33996da5deb699 | |
parent | Fix urlbar code when user chooses large icons (diff) | |
download | rekonq-0e2b60b4af86af076a034efe0c9ee584805d1dba.tar.xz |
Fix tabbar code with large icons
-rw-r--r-- | src/tabbar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 2ce0cb39..2d384122 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -101,6 +101,8 @@ TabBar::TabBar(QWidget *parent) QSize TabBar::tabSizeHint(int index) const { + Q_UNUSED(index); + MainView *view = qobject_cast<MainView *>(parent()); int buttonSize = view->addTabButton()->size().width(); @@ -125,7 +127,7 @@ QSize TabBar::tabSizeHint(int index) const } } - int h = KTabBar::tabSizeHint(index).height(); + int h = view->addTabButton()->height() + 6; QSize ts = QSize(w, h); return ts; |