first commit
This commit is contained in:
18
qml/content/Toggle.qml
Normal file
18
qml/content/Toggle.qml
Normal file
@@ -0,0 +1,18 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
Item {
|
||||
property string text
|
||||
property alias checked: toggleIndicator.checked
|
||||
|
||||
Label {
|
||||
id: toggleText
|
||||
text: parent.text
|
||||
anchors.verticalCenter: toggleIndicator.verticalCenter
|
||||
}
|
||||
Switch {
|
||||
id: toggleIndicator
|
||||
anchors.left: toggleText.right
|
||||
anchors.leftMargin: 8
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user