-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGeneratorForm.ui.qml
93 lines (84 loc) · 2.71 KB
/
GeneratorForm.ui.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
Frame {
Layout.fillWidth: true
Layout.fillHeight: true
readonly property alias siteTag: siteTag
readonly property alias masterKey: masterKey
readonly property alias hashWord: hashWord
readonly property alias unmask: unmask
readonly property alias bumpBtn: bumpBtn
readonly property alias generateBtn: generateBtn
GridLayout {
anchors.fill: parent
columns: 3
columnSpacing: 6
rowSpacing: 6
readonly property int thirdColumnMinimumWidth: 80
readonly property int thirdColumnMaximumWidth: 90
// Row #1
Label {
text: qsTr("Site tag")
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
}
TextField {
id: siteTag
placeholderText: qsTr("Site tag")
inputMethodHints: Qt.ImhSensitiveData | Qt.ImhNoAutoUppercase | Qt.ImhPreferLowercase
Layout.fillWidth: true
}
Button {
id: bumpBtn
text: "Bump"
enabled: siteTag.length > 0
Layout.minimumWidth: parent.thirdColumnMinimumWidth
Layout.maximumWidth: parent.thirdColumnMaximumWidth
Layout.fillWidth: true
}
// Row #2
Label {
text: qsTr("Master key")
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
}
TextField {
id: masterKey
placeholderText: qsTr("Master key")
inputMethodHints: Qt.ImhSensitiveData | Qt.ImhNoAutoUppercase | Qt.ImhPreferLowercase
echoMode: unmask.checked ? "Normal" : "Password"
Layout.fillWidth: true
}
CheckBox {
id: unmask
text: qsTr("Unmask")
padding: 0
Layout.minimumWidth: parent.thirdColumnMinimumWidth
Layout.maximumWidth: parent.thirdColumnMaximumWidth
Layout.fillWidth: true
}
// Row #3
Label {
text: qsTr("Password")
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
}
TextField {
id: hashWord
placeholderText: qsTr("Password")
inputMethodHints: Qt.ImhSensitiveData | Qt.ImhNoAutoUppercase
readOnly: true
Layout.fillWidth: true
}
Button {
id: generateBtn
text: "Generate"
enabled: siteTag.text.length > 0
Layout.minimumWidth: parent.thirdColumnMinimumWidth
Layout.maximumWidth: parent.thirdColumnMaximumWidth
Layout.fillWidth: true
}
}
}
/*##^##
Designer {
D{i:0;autoSize:true;formeditorColor:"#000000";width:500}
}
##^##*/