Bug 463285 - Add the switch widget to the widgets preview
Summary: Add the switch widget to the widgets preview
Status: RESOLVED INTENTIONAL
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_style (show other bugs)
Version: 5.26.4
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-20 21:42 UTC by Jack Hill
Modified: 2023-01-05 20:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Hill 2022-12-20 21:42:45 UTC
SUMMARY
Switches are quite common in GTK apps, and have started to be used in KDE apps (those that use mobileforms, e.g. Kalendar).


STEPS TO REPRODUCE
1. Open "Application Style" KCM
2. Look at the widget style preview

OBSERVED RESULT
No switch widget

EXPECTED RESULT
Visible switch widget

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20221218
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.0.12-1-default (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-01-05 20:08:28 UTC
There actually is no switch widget in QtWidgets. There is one for QtQuick and we have styling for it in our QQC2 theme. These previews are made using QtWidgets, and this KCM is all about the widgets style (which gets inherited for QtQuick apps), so there actually isn't a way to do this at the moment.