1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 20:27:45 +00:00
astra/launcher/tablet/qml/main.qml
Joshua Goins 55aaf7c1f6 Make tablet interface functional
Right now OTP and other stuff is missing for an actual login, but it
calls!
2022-06-08 13:55:15 -04:00

59 lines
No EOL
1,001 B
QML

import QtQuick 2.7
import QtQuick.Controls 2.15
import QtQuick.Window 2.0
import Astra 1.0
ApplicationWindow {
id: window
width: 640
height: 480
visible: true
Label {
id: usernameLabel
text: "Username"
}
TextField {
id: usernameField
anchors.top: usernameLabel.bottom
}
Label {
id: passwordLabel
text: "Password"
anchors.top: usernameField.bottom
}
TextField {
id: passwordField
echoMode: TextInput.Password
anchors.top: passwordLabel.bottom
}
Button {
id: loginButton
text: "Login"
anchors.top: passwordField.bottom
onClicked: {
var info = core.createNewLoginInfo();
info.settings = core.getProfileQML(0);
info.username = usernameField.text
info.password = passwordField.text
print(info);
core.squareBoot.checkGateStatus(info);
}
}
}