-
Notifications
You must be signed in to change notification settings - Fork 2
/
AccountDelegate.qml
45 lines (42 loc) · 1.21 KB
/
AccountDelegate.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
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.1
import Qt.WebSockets 1.0
import com.nathanhourt.steem.accounts 1.0
import com.nathanhourt.steem.crypto 1.0
import com.nathanhourt.rpc 1.0
ItemDelegate {
onClicked: ListView.view.currentIndex = index
signal editKey(string authorityLevel, KeyPair key)
contentItem: Column {
spacing: 4
Label {
font.bold: true
text: name
}
KeyDelegate {
keyName: qsTr("Owner key")
key: ownerKey
width: parent.width
editButton.onClicked: editKey("owner", ownerKey)
}
KeyDelegate {
keyName: qsTr("Active key")
key: activeKey
width: parent.width
editButton.onClicked: editKey("active", activeKey)
}
KeyDelegate {
keyName: qsTr("Posting key")
key: postingKey
width: parent.width
editButton.onClicked: editKey("posting", postingKey)
}
KeyDelegate {
keyName: qsTr("Memo key")
key: memoKey
width: parent.width
editButton.onClicked: editKey("memo_key", memoKey)
}
}
}