Before, the display property of buttons introduced in Qt 5.10
was not taken into account. It allows to specify if the buttons
display icon or text only, or both. Text below icon is not yet
supported.
Details
- Reviewers
apol mart - Group Reviewers
Plasma - Commits
- R858:974efd584666: Respect the display property of buttons
Diff Detail
- Repository
- R858 Qt Quick Controls 2: Desktop Style
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
I guess we can wait until we can bump to Qt 5.10 as a dependency? This looks a bit chaotic.
Also the Under/Beside setting isn't taken into account yet.
Reading https://community.kde.org/Frameworks/Policies, bumping to Qt 5.10 happens rather soonish, right?
Also the Under/Beside setting isn't taken into account yet.
Yep, forgot that to mention, but icon above the text is not something I currently care about.
Can I convince you to land this for Kf 5.53 with the promise to clean up once frameworks depends on Qt 5.10?
it needs at least a final release of Qt 5.12: frameworks need to depend from 2 Qt releases prior the current one.
however, i think it's possible to make it work without breaking old releases
org.kde.desktop/Button.qml | ||
---|---|---|
44 | controlRoot.hasOwnProperty("display") | |
63 | controlRoot.display == undefined needs to become controlRoot.hasOwnProperty("display") this would be false with Qt 5.9 and less, protecting controlRoot.display != 1 |