[kcmkwin/desktop] Elide "Show animation when switching" checkbox text

Summary:
Otherwise the combobox containing the switching effects escapes from the page. Same fix
as D24885.

BUG: 403151
FIXED-IN: 5.17.2

Test Plan:
Checkbox text now elides when the window is made very narrow, and combobox no longer gets
cut off.

Reviewers: #kwin, zzag, davidedmundson

Reviewed By: #kwin, zzag, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D24988
This commit is contained in:
Nate Graham 2019-10-27 12:51:39 -06:00
parent ee2507129b
commit 105976a42a

View file

@ -192,6 +192,9 @@ ScrollViewKCM {
QQC2.CheckBox { QQC2.CheckBox {
id: animationEnabled id: animationEnabled
// Let it elide but don't make it push the ComboBox away from it
Layout.fillWidth: true
Layout.maximumWidth: implicitWidth
text: i18n("Show animation when switching:") text: i18n("Show animation when switching:")