Summary: | Components that use StylePrivate.StyleItem to render content can't handle icon.source | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-qqc2-desktop-style | Reporter: | Nate Graham <nate> |
Component: | general | Assignee: | Marco Martin <notmart> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | ahiemstra, kde, kde, noahadvs |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Nate Graham
2021-02-22 17:14:43 UTC
Probably need to do it like Kirigami https://invent.kde.org/frameworks/kirigami/-/blob/master/src/icon.cpp#L402 A possibly relevant merge request was started @ https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/67 Git commit 35e6076565d565922939eeca11e93abe67f7b664 by Nate Graham. Committed on 19/04/2021 at 21:11. Pushed by ngraham into branch 'master'. Draw icon in QQStyleItem Checkbox already knew how to do this, but it was doing so internally to itself. Let's move that logic to CheckDelegate.qml so that everything that uses it gains the same feature. This functionality can be optionally disabled in case a control using it already handles icon-drawing by itself. M +4 -4 org.kde.desktop/CheckBox.qml M +5 -2 org.kde.desktop/CheckDelegate.qml M +12 -1 org.kde.desktop/CheckIndicator.qml M +2 -0 org.kde.desktop/MenuItem.qml M +4 -4 org.kde.desktop/RadioButton.qml M +5 -2 org.kde.desktop/RadioDelegate.qml https://invent.kde.org/frameworks/qqc2-desktop-style/commit/35e6076565d565922939eeca11e93abe67f7b664 |