Bug 463285

Summary: Add the switch widget to the widgets preview
Product: [Applications] systemsettings Reporter: Jack Hill <jackhill3103>
Component: kcm_styleAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: mail, nate
Priority: NOR    
Version First Reported In: 5.26.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.