yubioath-flutter/qml/PasswordPrompt.qml

45 lines
1.1 KiB
QML
Raw Normal View History

2017-03-07 11:10:22 +03:00
import QtQuick 2.5
2017-02-07 16:17:54 +03:00
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.1
import QtQuick.Controls.Styles 1.4
import QtQuick.Dialogs 1.2
2017-03-08 12:21:25 +03:00
DefaultDialog {
2017-02-08 18:47:28 +03:00
id: passwordPrompt
2017-02-07 16:17:54 +03:00
title: qsTr("Enter password")
2017-03-01 13:57:40 +03:00
property string password: password.text
property bool remember: rememberPassword.checked
2017-02-07 16:17:54 +03:00
ColumnLayout {
RowLayout {
Label {
text: qsTr("Password: ")
}
TextField {
id: password
echoMode: TextInput.Password
Layout.fillWidth: true
}
}
2017-02-28 17:16:22 +03:00
RowLayout {
CheckBox {
id: rememberPassword
text: qsTr("Remember password")
}
}
2017-03-08 12:21:25 +03:00
RowLayout {
Layout.alignment: Qt.AlignRight | Qt.AlignBottom
Button {
text: qsTr("Ok")
Layout.alignment: Qt.AlignRight | Qt.AlignBottom
onClicked: {close(); accepted()}
}
Button {
text: qsTr("Cancel")
onClicked: close()
}
}
2017-02-07 16:17:54 +03:00
}
}