1
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:
David Rosca 2018-02-10 09:13:56 +01:00
parent 3e2e4fa2ce
commit 3e1e49f3d3
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -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();
}