From 253b12e140905d3a38bcd09d55b9c5dbf0601d66 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Wed, 17 Jun 2020 13:17:16 +0200 Subject: [feat] working about dialog --- gui/qml/LoginDialog.qml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 gui/qml/LoginDialog.qml (limited to 'gui/qml/LoginDialog.qml') diff --git a/gui/qml/LoginDialog.qml b/gui/qml/LoginDialog.qml new file mode 100644 index 0000000..fbe5ce1 --- /dev/null +++ b/gui/qml/LoginDialog.qml @@ -0,0 +1,28 @@ +import QtQuick 2.0 +import QtQuick.Dialogs 1.2 +import QtQuick.Controls 1.4 + +Dialog { + standardButtons: StandardButton.Ok + title: "Login" + Column { + anchors.fill: parent + Text { + text: "Log in with your library credentials" + } + TextField { + id: username + placeholderText: "patron id" + } + TextField { + id: password + placeholderText: "password" + echoMode: TextInput.PasswordEchoOnEdit + } + } + + visible: false + //visible: ctx.showLogin == true + //onAccepted: backend.login(username.text, password.text) + onRejected: backend.quit() // TODO: it doesn't close +} -- cgit v1.2.3