mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
TabIcon: Don't resize to lower height than minimumHeight
Fixes tabs height changing when there are no buttons on tabs visible in main tabbar (eg. selected tab is pinned and all tabs have icon hidden) with Fusion style.
This commit is contained in:
parent
3e2e4fa2ce
commit
3e1e49f3d3
|
@ -132,7 +132,7 @@ void TabIcon::show()
|
|||
return;
|
||||
}
|
||||
|
||||
setFixedSize(16, 16);
|
||||
setFixedSize(16, qMax(minimumHeight(), 16));
|
||||
emit resized();
|
||||
QWidget::show();
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ void TabIcon::hide()
|
|||
}
|
||||
|
||||
emit resized();
|
||||
setFixedSize(1, 16);
|
||||
setFixedSize(1, qMax(minimumHeight(), 16));
|
||||
QWidget::hide();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user