diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-11-29 17:05:15 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-11-29 17:05:15 +0100 |
commit | 39e797d2302a9ea1a48c13863b9c22f384e9d1f6 (patch) | |
tree | 772e7e97a97d3bc5a647fdf0b0a35a4002c18aab /src/tabwindow/tabbar.cpp | |
parent | Fix awkward string in proxy settings (diff) | |
download | rekonq-39e797d2302a9ea1a48c13863b9c22f384e9d1f6.tar.xz |
Changing tab width management behaviour
Following hints from
BUG: 322991
Diffstat (limited to 'src/tabwindow/tabbar.cpp')
-rw-r--r-- | src/tabwindow/tabbar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tabwindow/tabbar.cpp b/src/tabwindow/tabbar.cpp index b64e5655..40ced0a6 100644 --- a/src/tabwindow/tabbar.cpp +++ b/src/tabwindow/tabbar.cpp @@ -100,13 +100,15 @@ QSize TabBar::tabSizeHint(int index) const QWidget* p = qobject_cast<QWidget *>(parent()); int w; + // if tab is pinned... if (tabData(index).toBool()) { w = 36; } else { - int tabWidgetWidth = p->size().width(); + // available width is tab widget width minus addTabButton width + int tabWidgetWidth = p->size().width() - 24; w = c_baseTabWidth; if (w * count() > tabWidgetWidth) { |