|
|
@ -11,51 +11,24 @@ Pane { |
|
|
|
id: root |
|
|
|
width: parent.width |
|
|
|
height: parent.height |
|
|
|
padding: 0 |
|
|
|
|
|
|
|
property string address |
|
|
|
|
|
|
|
property string title: qsTr("Address details") |
|
|
|
|
|
|
|
signal addressDetailsChanged |
|
|
|
|
|
|
|
property QtObject menu: Menu { |
|
|
|
id: menu |
|
|
|
MenuItem { |
|
|
|
icon.color: 'transparent' |
|
|
|
action: Action { |
|
|
|
text: qsTr('Spend from') |
|
|
|
icon.source: '../../icons/tab_send.png' |
|
|
|
enabled: false |
|
|
|
} |
|
|
|
} |
|
|
|
MenuItem { |
|
|
|
icon.color: 'transparent' |
|
|
|
action: Action { |
|
|
|
text: qsTr('Sign/Verify') |
|
|
|
icon.source: '../../icons/key.png' |
|
|
|
enabled: false |
|
|
|
} |
|
|
|
} |
|
|
|
MenuItem { |
|
|
|
icon.color: 'transparent' |
|
|
|
action: Action { |
|
|
|
text: qsTr('Encrypt/Decrypt') |
|
|
|
icon.source: '../../icons/mail_icon.png' |
|
|
|
enabled: false |
|
|
|
} |
|
|
|
} |
|
|
|
MenuItem { |
|
|
|
icon.color: 'transparent' |
|
|
|
action: Action { |
|
|
|
text: addressdetails.isFrozen ? qsTr('Unfreeze') : qsTr('Freeze') |
|
|
|
onTriggered: addressdetails.freeze(!addressdetails.isFrozen) |
|
|
|
icon.source: '../../icons/seal.png' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
ColumnLayout { |
|
|
|
anchors.fill: parent |
|
|
|
spacing: 0 |
|
|
|
|
|
|
|
Flickable { |
|
|
|
anchors.fill: parent |
|
|
|
Layout.preferredWidth: parent.width |
|
|
|
Layout.fillHeight: true |
|
|
|
|
|
|
|
leftMargin: constants.paddingLarge |
|
|
|
rightMargin: constants.paddingLarge |
|
|
|
topMargin: constants.paddingLarge |
|
|
|
|
|
|
|
contentHeight: rootLayout.height |
|
|
|
clip:true |
|
|
|
interactive: height < contentHeight |
|
|
@ -63,6 +36,7 @@ Pane { |
|
|
|
GridLayout { |
|
|
|
id: rootLayout |
|
|
|
width: parent.width |
|
|
|
|
|
|
|
columns: 2 |
|
|
|
|
|
|
|
Label { |
|
|
@ -255,6 +229,14 @@ Pane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
FlatButton { |
|
|
|
Layout.fillWidth: true |
|
|
|
text: addressdetails.isFrozen ? qsTr('Unfreeze address') : qsTr('Freeze address') |
|
|
|
onClicked: addressdetails.freeze(!addressdetails.isFrozen) |
|
|
|
icon.source: '../../icons/seal.png' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
AddressDetails { |
|
|
|
id: addressdetails |
|
|
|
wallet: Daemon.currentWallet |
|
|
|