aboutsummaryrefslogtreecommitdiff
path: root/components/PasswordDialog.qml
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-08-17 15:14:43 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-08-17 15:14:43 +0300
commitc1269301f7c19a849b0fae7ddbe9afd38aaf71d3 (patch)
tree808bf213becf267eed4fbec5db87f823faee103d /components/PasswordDialog.qml
parent6f1343aaa04bf2e4f959b5d3201239fe7fc85398 (diff)
downloadmonzero-gui-c1269301f7c19a849b0fae7ddbe9afd38aaf71d3.tar.gz
monzero-gui-c1269301f7c19a849b0fae7ddbe9afd38aaf71d3.tar.xz
monzero-gui-c1269301f7c19a849b0fae7ddbe9afd38aaf71d3.zip
Ask for password in wallet is password protected. closes #26
Diffstat (limited to 'components/PasswordDialog.qml')
-rw-r--r--components/PasswordDialog.qml37
1 files changed, 36 insertions, 1 deletions
diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml
index 9c36e13c..cd66d461 100644
--- a/components/PasswordDialog.qml
+++ b/components/PasswordDialog.qml
@@ -1,5 +1,40 @@
import QtQuick 2.0
+import QtQuick.Controls 1.4
+import QtQuick.Dialogs 1.2
+import QtQuick.Layouts 1.1
+import QtQuick.Controls.Styles 1.4
-Item {
+// import "../components"
+Dialog {
+ id: root
+ readonly property alias password: passwordInput.text
+ standardButtons: StandardButton.Ok + StandardButton.Cancel
+ ColumnLayout {
+ id: column
+ height: 40
+ anchors.fill: parent
+
+ Label {
+ text: qsTr("Please enter wallet password")
+ Layout.columnSpan: 2
+ Layout.fillWidth: true
+ font.family: "Arial"
+ font.pixelSize: 32
+ }
+
+ TextField {
+ id : passwordInput
+
+ echoMode: TextInput.Password
+ focus: true
+ Layout.fillWidth: true
+ font.family: "Arial"
+ font.pixelSize: 24
+ style: TextFieldStyle {
+ passwordCharacter: "•"
+ }
+ }
+ }
}
+