id: content
spacing: Const.DEFAULT_MARGIN
x: Const.TEXT_MARGIN
+ width: root.width-2*Const.TEXT_MARGIN
Spacer {}
TextField {
id: user
placeholderText: qsTr("User ID")
- width: 400
+ anchors.left: parent.left
+ anchors.right: parent.right
}
TextField {
id: pass
- width: 400
placeholderText: qsTr("Password")
echoMode: TextInput.Password
+ anchors.left: parent.left
+ anchors.right: parent.right
}
Spacer {}
Button {
label: qsTr("Save")
onButtonClicked: root.getToken()
+ anchors.left: parent.left
}
}
}