4ecdbe9622
Summary: These were super useful for spotting bugs in PC2. They show many many issues already. Visually they should match PC2. They don't Some API doesn't map directly. Those tests were removed. Test Plan: Opened in qmlscene Everything binds correctly. Some things look horrible. Reviewers: #plasma Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D23827
68 lines
1.3 KiB
QML
68 lines
1.3 KiB
QML
import QtQuick 2.0
|
|
|
|
import org.kde.plasma.components 3.0 as PlasmaComponents
|
|
import QtQuick.Layouts 1.2
|
|
|
|
Rectangle
|
|
{
|
|
width: 500
|
|
height: 500
|
|
color: "white"
|
|
|
|
Grid {
|
|
anchors.fill: parent
|
|
anchors.margins: 20
|
|
spacing: 4
|
|
columns: 2
|
|
|
|
Label {
|
|
text: "text"
|
|
}
|
|
PlasmaComponents.CheckBox {
|
|
text: "Some awesome checkbox"
|
|
}
|
|
|
|
Label {
|
|
text: "focus"
|
|
}
|
|
PlasmaComponents.CheckBox {
|
|
text: "Some awesome checkbox"
|
|
focus: true
|
|
}
|
|
|
|
Label {
|
|
text: "checked"
|
|
}
|
|
PlasmaComponents.CheckBox {
|
|
text: "Some awesome checkbox"
|
|
checkState: Qt.Checked
|
|
}
|
|
|
|
Label {
|
|
text: "tri-state"
|
|
}
|
|
PlasmaComponents.CheckBox {
|
|
text: "Some awesome checkbox"
|
|
checkState: Qt.PartiallyChecked
|
|
}
|
|
|
|
Label {
|
|
text: "disabled"
|
|
}
|
|
PlasmaComponents.CheckBox {
|
|
text: "Some awesome checkbox"
|
|
enabled: false
|
|
}
|
|
|
|
Label {
|
|
text: "disabled and checked"
|
|
}
|
|
PlasmaComponents.CheckBox {
|
|
text: "Some awesome checkbox"
|
|
enabled: false
|
|
checkState: Qt.Checked
|
|
}
|
|
}
|
|
}
|
|
|