org::kde::kcm::SettingStateBinding

Search for usage in LXR

org::kde::kcm::SettingStateBinding Class Reference

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 25 of file SettingStateBinding.qml.

Property Documentation

◆ configObject

alias org::kde::kcm::SettingStateBinding::configObject
read

configObject: KCoreConfigSkeleton The config object which will be monitored for setting state changes

Definition at line 37 of file SettingStateBinding.qml.

◆ extraEnabledConditions

bool org::kde::kcm::SettingStateBinding::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 52 of file SettingStateBinding.qml.

◆ nonDefaultHighlightVisible

bool org::kde::kcm::SettingStateBinding::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 63 of file SettingStateBinding.qml.

◆ settingName

alias org::kde::kcm::SettingStateBinding::settingName
read

settingName: string The name of the setting in the config object to be monitored

Definition at line 42 of file SettingStateBinding.qml.

◆ target

alias org::kde::kcm::SettingStateBinding::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 32 of file SettingStateBinding.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 04:07:33 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.