restructured resource files directories
This commit is contained in:
parent
b6c0d89f1f
commit
e14a639d71
18 changed files with 29 additions and 23 deletions
65
qml/Login.qml
Normal file
65
qml/Login.qml
Normal file
|
@ -0,0 +1,65 @@
|
|||
import QtQuick 2.0
|
||||
import QtQuick.Controls 1.2
|
||||
|
||||
Rectangle {
|
||||
color: "transparent"
|
||||
anchors.fill: parent
|
||||
|
||||
property string serverUrl: serverUrl.text
|
||||
property string userName: userName.text
|
||||
property string password: password.text
|
||||
|
||||
Column {
|
||||
anchors.centerIn: parent
|
||||
width: parent.width / 2
|
||||
anchors.margins: parent.width / 4
|
||||
spacing: 10
|
||||
|
||||
Text {
|
||||
text: qsTr("Please specify a server url, a username and a password.")
|
||||
wrapMode: Text.WordWrap
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.margins: 20
|
||||
font.pointSize: 20
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: serverUrl
|
||||
placeholderText: "http://example.com/ttrss/"
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.margins: 20
|
||||
validator: RegExpValidator { regExp: /https?:\/\/.+/ }
|
||||
onAccepted: login()
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: userName
|
||||
placeholderText: qsTr("username")
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.margins: 20
|
||||
onAccepted: login()
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: password
|
||||
placeholderText: qsTr("password")
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.margins: 20
|
||||
echoMode: TextInput.Password
|
||||
onAccepted: login()
|
||||
}
|
||||
|
||||
Button {
|
||||
id: loginButton
|
||||
text: "Ok"
|
||||
anchors.right: parent.right
|
||||
anchors.margins: 20
|
||||
onClicked: login()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue