mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-29 04:14:52 +03:00
45 lines
1.1 KiB
QML
45 lines
1.1 KiB
QML
import QtQuick 2.5
|
|
import QtQuick.Controls 1.4
|
|
import QtQuick.Layouts 1.1
|
|
import QtQuick.Controls.Styles 1.4
|
|
import QtQuick.Dialogs 1.2
|
|
|
|
DefaultDialog {
|
|
id: passwordPrompt
|
|
title: qsTr("Enter password")
|
|
|
|
property string password: password.text
|
|
property bool remember: rememberPassword.checked
|
|
|
|
ColumnLayout {
|
|
RowLayout {
|
|
Label {
|
|
text: qsTr("Password: ")
|
|
}
|
|
TextField {
|
|
id: password
|
|
echoMode: TextInput.Password
|
|
Layout.fillWidth: true
|
|
}
|
|
}
|
|
RowLayout {
|
|
CheckBox {
|
|
id: rememberPassword
|
|
text: qsTr("Remember password")
|
|
}
|
|
}
|
|
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()
|
|
}
|
|
}
|
|
}
|
|
}
|