forked from jeena/FeedTheMonkey
new ttrss stuff
This commit is contained in:
parent
87585b44ec
commit
307b8ffae0
8 changed files with 176 additions and 22 deletions
62
Login.qml
Normal file
62
Login.qml
Normal file
|
@ -0,0 +1,62 @@
|
|||
import QtQuick 2.0
|
||||
import QtQuick.Controls 1.2
|
||||
|
||||
Rectangle {
|
||||
color: "white"
|
||||
anchors.fill: parent
|
||||
|
||||
function login() {
|
||||
|
||||
}
|
||||
|
||||
Column {
|
||||
width: parent.width
|
||||
anchors.margins: 20
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
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