mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setFixedSize(16, 16);
|
setFixedSize(16, qMax(minimumHeight(), 16));
|
||||||
emit resized();
|
emit resized();
|
||||||
QWidget::show();
|
QWidget::show();
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ void TabIcon::hide()
|
|||||||
}
|
}
|
||||||
|
|
||||||
emit resized();
|
emit resized();
|
||||||
setFixedSize(1, 16);
|
setFixedSize(1, qMax(minimumHeight(), 16));
|
||||||
QWidget::hide();
|
QWidget::hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user