-
Notifications
You must be signed in to change notification settings - Fork 0
/
ViewKeyList.qml
88 lines (83 loc) · 2.61 KB
/
ViewKeyList.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
import QtQuick 2.7
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.0
Item {
id: idform_keyList
width: 480
height: 800
signal sgnChangeState(string theNewState)
GroupBox{
id: id_keyListBox
anchors.fill: parent
anchors.margins: 12
anchors.bottomMargin: 20
label: Label{
text: "Choose an account to see details"
color: globalFontColor
font.pixelSize: 20
}
Component {
id: id_DelegateKeys
RowLayout{
Rectangle{
height: 50
width: 250
border.color: "black"
color: index % 2 == 0 ? "#171E32" : "#111526"
MouseArea{
anchors.fill: parent
onClicked:{
sgnChangeState("stView")
id_pwdHandler.requestDataOfIndex(index)
}}
Text {
text: modelData
color: globalFontColor
font.pixelSize: 25
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
}
}
}
}
ListView{
id: id_listViewKeys
anchors.fill: parent
model: keysModel
delegate: id_DelegateKeys
clip: true
onCurrentItemChanged:{
// console.log("Fromlistview " + id_listViewKeys.currentIndex)
}
ScrollBar.vertical: ScrollBar {
active: true
}
}
RoundButton {
id: id_add_del
anchors.right: parent.right
anchors.bottom: parent.bottom
width: 60; height: 60
Text {
text: qsTr("+")
color: globalFontColor
font.pixelSize: 50
font.bold: true
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
}
palette {
button: "#2A4B8D"
}
ColorAnimation {
from: "#4B62C1"
to: "#2A4B8D"
duration: 200
}
onClicked: {
sgnChangeState("stAdd")
id_swipeView.currentIndex = 2
}
}
}
}