2019-09-10 12:35:55 +02:00
|
|
|
import QtQuick 2.0
|
|
|
|
|
|
|
|
import org.kde.plasma.components 3.0 as PlasmaComponents
|
|
|
|
import QtQuick.Layouts 1.2
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
ComponentBase {
|
2019-09-10 12:35:55 +02:00
|
|
|
Grid {
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.margins: 20
|
|
|
|
spacing: 4
|
|
|
|
columns: 2
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "text"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "focus"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
focus: true
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "checked"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
checkState: Qt.Checked
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "tri-state"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
checkState: Qt.PartiallyChecked
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "disabled"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
enabled: false
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "disabled and checked"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
enabled: false
|
|
|
|
checkState: Qt.Checked
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|