2017-09-19 13:50:44 +01:00
|
|
|
import QtQuick 2.0
|
|
|
|
import QtQuick.Layouts 1.2
|
2020-08-18 05:45:23 -04:00
|
|
|
import QtQuick.Controls 1.2
|
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
import org.kde.plasma.components 2.0 as PlasmaComponents
|
2017-09-19 13:50:44 +01:00
|
|
|
|
2019-12-09 16:33:23 +00:00
|
|
|
ComponentBase {
|
2020-08-18 05:45:23 -04:00
|
|
|
id: root
|
|
|
|
title: "Plasma Components 2 CheckBox"
|
|
|
|
contentItem: GridLayout {
|
|
|
|
rowSpacing: PlasmaCore.Units.smallSpacing
|
|
|
|
columnSpacing: PlasmaCore.Units.largeSpacing
|
2017-09-19 13:50:44 +01:00
|
|
|
columns: 2
|
|
|
|
|
2020-08-18 05:45:23 -04:00
|
|
|
PlasmaComponents.Label {
|
2017-09-19 13:50:44 +01:00
|
|
|
text: "text"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
}
|
|
|
|
|
2020-08-18 05:45:23 -04:00
|
|
|
PlasmaComponents.Label {
|
2017-09-19 13:50:44 +01:00
|
|
|
text: "focus"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
focus: true
|
|
|
|
}
|
|
|
|
|
2020-08-18 05:45:23 -04:00
|
|
|
PlasmaComponents.Label {
|
2017-09-19 13:50:44 +01:00
|
|
|
text: "checked"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
checkedState: Qt.Checked
|
|
|
|
}
|
|
|
|
|
2020-08-18 05:45:23 -04:00
|
|
|
PlasmaComponents.Label {
|
2017-09-19 13:50:44 +01:00
|
|
|
text: "tri-state"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
checkedState: Qt.PartiallyChecked
|
|
|
|
}
|
|
|
|
|
2020-08-18 05:45:23 -04:00
|
|
|
PlasmaComponents.Label {
|
2017-09-19 13:50:44 +01:00
|
|
|
text: "disabled"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
enabled: false
|
|
|
|
}
|
|
|
|
|
2020-08-18 05:45:23 -04:00
|
|
|
PlasmaComponents.Label {
|
2017-09-19 13:50:44 +01:00
|
|
|
text: "disabled and checked"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
enabled: false
|
|
|
|
checkedState: Qt.Checked
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|