org::kde::kcm::SettingStateBinding
Inherits Item.
Properties | |
bool | __defaultsIndicatorsVisible |
alias | configObject |
bool | extraEnabledConditions |
bool | nonDefaultHighlightVisible |
alias | settingName |
alias | target |
Detailed Description
SettingStateBinding automatically impacts the representation of an item based on the state of a setting.
- Since
- 1.3 It will disable the item if the setting is immutable and use a visual indicator for the state of the setting.
This is a higher level convenience wrapper for KCM.SettingStateProxy and KCM.SettingStateIndicator.
- Since
- 5.73
Definition at line 24 of file SettingStateBinding.qml.
Property Documentation
◆ configObject
|
read |
configObject: KCoreConfigSkeleton The config object which will be monitored for setting state changes
Definition at line 36 of file SettingStateBinding.qml.
◆ extraEnabledConditions
|
read |
extraEnabledConditions: bool SettingStateBinding will manage the enabled property of the target based on the immutability state of the setting it represents.
But, sometimes that enabled state needs to bind to other properties as well to be computed properly. This extra condition will thus be combined with the immutability state of the setting to determine the effective enabled state of the target.
Definition at line 51 of file SettingStateBinding.qml.
◆ nonDefaultHighlightVisible
|
read |
nonDefaultHighlightVisible: bool Expose whether the non default highlight is visible.
Allow one to implement highlight with custom items.
- Since
- 5.73
- Remarks
- This property is read-only
Definition at line 62 of file SettingStateBinding.qml.
◆ settingName
|
read |
settingName: string The name of the setting in the config object to be monitored
Definition at line 41 of file SettingStateBinding.qml.
◆ target
|
read |
target: Item The graphical element whose state we want to manage based on a setting If target is not set, it will try to find the visual parent item
Definition at line 31 of file SettingStateBinding.qml.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 04:02:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.