yubioath-flutter/qml/PasswordPrompt.qml

34 lines
800 B
QML
Raw Normal View History

2017-02-07 16:17:54 +03:00
import QtQuick 2.6
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.1
import QtQuick.Controls.Styles 1.4
import QtQuick.Dialogs 1.2
Dialog {
2017-02-08 18:47:28 +03:00
id: passwordPrompt
2017-02-07 16:17:54 +03:00
title: qsTr("Enter password")
standardButtons: StandardButton.Ok | StandardButton.Cancel
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-02-07 16:17:54 +03:00
}
}