1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-02-06 21:48:24 +08:00
2020-10-21 14:13:04 +08:00

119 lines
2.7 KiB
QML

import QtQuick 2.9
import QtQuick.Controls 2.2
import TaoQuick 1.0
Item {
anchors.fill: parent
Column {
anchors.centerIn: parent
spacing: 10
CusLabel {
text: qsTr("CheckBox") + trans.transString
wrapMode: Label.WordWrap
width: 400
}
Row {
spacing: 10
CusCheckBox {
text: "unchecked"
}
CusCheckBox {
checked: true
text: "checked"
}
CusCheckBox {
enabled: false
text: "disable"
}
CusCheckBox {
enabled: false
checked: true
text: "disable & checked"
}
}
Item {
width: 20
height: 30
}
CusLabel {
text: qsTr("Switch") + trans.transString
wrapMode: Label.WordWrap
width: 400
}
Row {
spacing: 10
CusSwitch {}
CusSwitch {
checked: true
}
}
Item {
width: 20
height: 30
}
CusLabel {
text: qsTr("ComboBox") + trans.transString
wrapMode: Label.WordWrap
width: 400
}
Row {
spacing: 10
CusComboBox {
model: 10
width: 120
displayText: qsTr(currentText) + trans.transString
}
CusComboBox {
model: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
width: 120
displayText: qsTr(currentText) + trans.transString
}
}
Item {
width: 20
height: 30
}
CusLabel {
text: qsTr("Slider") + trans.transString
wrapMode: Label.WordWrap
width: 400
}
Row {
spacing: 10
CusSlider {
width: 200
from: 0
to: 200
}
CusSlider_Spin {
width: 200
from: 0
to: 100
}
CusSpinBox_HourMinute {
width: 200
}
}
Item {
width: 20
height: 30
}
CusLabel {
text: qsTr("TextInput") + trans.transString
wrapMode: Label.WordWrap
width: 400
}
Row {
spacing: 10
CusTextField {
width: 200
}
CusTextField_Search {
width: 200
}
}
}
}