diff options
| author | Méven Car <[email protected]> | 2026-02-07 12:58:48 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-02-10 19:08:33 +0000 |
| commit | 369d0dc5d6dc8b37ca057b6acfbb01a945dccb66 (patch) | |
| tree | c78264e9629fecb36368a66687048144a45377ca /src/dolphintabbar.cpp | |
| parent | 1bb45e6361c44760be401dee040b47a5f3afb2ec (diff) | |
tabbar: readd auto-with tab width and make it default
Diffstat (limited to 'src/dolphintabbar.cpp')
| -rw-r--r-- | src/dolphintabbar.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dolphintabbar.cpp b/src/dolphintabbar.cpp index b2a305a27..1b8236abb 100644 --- a/src/dolphintabbar.cpp +++ b/src/dolphintabbar.cpp @@ -76,7 +76,7 @@ QSize DolphinTabBar::minimumSizeHint() const { QSize s = QTabBar::minimumSizeHint(); - if (GeneralSettings::tabStyle() != GeneralSettings::EnumTabStyle::FixedSize) { + if (GeneralSettings::tabStyle() == GeneralSettings::EnumTabStyle::FullWidth) { s.setWidth(0); // allow shrinking } @@ -226,7 +226,11 @@ void DolphinTabBar::slotTabBarChanged() } else if (GeneralSettings::tabStyle() == GeneralSettings::EnumTabStyle::FullWidth) { setExpanding(true); setUsesScrollButtons(false); + } else { + setExpanding(false); + setUsesScrollButtons(true); } + updateGeometry(); } |
