yubioath-flutter/qml/PasswordPrompt.qml
2017-02-10 09:51:01 +01:00

27 lines
613 B
QML

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 {
id: passwordPrompt
title: qsTr("Enter password")
standardButtons: StandardButton.Ok | StandardButton.Cancel
onAccepted: {
device.validate(password.text);
}
ColumnLayout {
RowLayout {
Label {
text: qsTr("Password: ")
}
TextField {
id: password
echoMode: TextInput.Password
Layout.fillWidth: true
}
}
}
}