9import QtQuick.Templates as T
11import org.kde.ksvg as KSvg
13import org.kde.plasma.core as PlasmaCore
14import org.kde.kirigami as Kirigami
15import "private" as Private
20 required
property T.AbstractButton control
22 imagePath:
"widgets/button"
24 implicitWidth:
Kirigami.Units.iconSizes.small
25 implicitHeight:
Kirigami.Units.iconSizes.small
26 opacity: control.enabled ? 1 : 0.6
28 Private.ButtonShadow {
30 showShadow: !control.down
37 imagePath:
"widgets/checkmarks"
41 if (control instanceof T.CheckBox) {
42 switch (control.checkState) {
45 case Qt.PartiallyChecked:
51 return control.checked ? 1 : 0;
55 enabled:
Kirigami.Units.longDuration > 0
57 duration:
Kirigami.Units.longDuration
58 easing.type: Easing.InOutQuad
65 showFocus: control.visualFocus && !control.down
70 showHover: control.hovered
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:34:35 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.