2import org.mauikit.controls as Maui
8 implicitHeight: Maui.Style.iconSize + 2
9 implicitWidth: implicitHeight
11 property bool checked : false
12 property bool checkable: false
13 property bool autoExclusive: false
14 property bool hovered: false
21 color: control.checked ? Maui.Theme.backgroundColor : Maui.Theme.backgroundColor
22 radius: control.autoExclusive ? height/2 : 4
23 border.color: control.checked ? Maui.Theme.highlightColor : Maui.ColorUtils.linearInterpolation(Maui.Theme.alternateBackgroundColor, Maui.Theme.textColor, 0.2)
30 color: Maui.Theme.highlightColor
32 anchors.centerIn: parent
34 height: control.checked ? Math.round(parent.height*0.9) : 0
37 opacity: control.checked ? 1 : 0
41 source: "qrc:/assets/checkmark.svg"
47 duration: Maui.Style.units.shortDuration
48 easing.type: Easing.InOutQuad
54 Maui.ColorTransition{}
60 Maui.ColorTransition{}
68 _checkAnimation.start()
71 _uncheckAnimation.start()
82 duration: Maui.Style.units.longDuration
83 easing.type: Easing.OutBack
93 duration: Maui.Style.units.longDuration
94 easing.type: Easing.InBack
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:46:38 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.