diff options
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) { |