Changeset View
Changeset View
Standalone View
Standalone View
src/applet/package/contents/ui/SwitchButton.qml
Show All 23 Lines | |||||
24 | import org.kde.plasma.components 2.0 as PlasmaComponents | 24 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
25 | 25 | | |||
26 | Item { | 26 | Item { | ||
27 | id: switchButton | 27 | id: switchButton | ||
28 | 28 | | |||
29 | property alias icon: switchButtonIcon.source | 29 | property alias icon: switchButtonIcon.source | ||
30 | property alias checked: switchButtonCheckbox.checked | 30 | property alias checked: switchButtonCheckbox.checked | ||
31 | property alias enabled: switchButtonCheckbox.enabled | 31 | property alias enabled: switchButtonCheckbox.enabled | ||
32 | property alias tooltip: switchButtonCheckbox.tooltip | ||||
32 | 33 | | |||
33 | signal clicked | 34 | signal clicked | ||
34 | 35 | | |||
35 | height: switchButtonCheckbox.height + Math.round(units.gridUnit / 2) | 36 | height: switchButtonCheckbox.height + Math.round(units.gridUnit / 2) | ||
36 | width: switchButtonCheckbox.width + switchButtonIcon.width + units.gridUnit | 37 | width: switchButtonCheckbox.width + switchButtonIcon.width + units.gridUnit | ||
37 | 38 | | |||
38 | PlasmaComponents.CheckBox { | 39 | PlasmaComponents.CheckBox { | ||
39 | id: switchButtonCheckbox | 40 | id: switchButtonCheckbox | ||
Show All 29 Lines |