aboutsummaryrefslogtreecommitdiff
path: root/MiddlePanel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'MiddlePanel.qml')
-rw-r--r--MiddlePanel.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/MiddlePanel.qml b/MiddlePanel.qml
index 60f79185..6f6e3043 100644
--- a/MiddlePanel.qml
+++ b/MiddlePanel.qml
@@ -51,6 +51,7 @@ Rectangle {
property History historyView: History { }
property Sign signView: Sign { }
property Settings settingsView: Settings { }
+ property AddressBook addressBookView: AddressBook { }
signal paymentClicked(string address, string paymentId, string amount, int mixinCount, int priority, string description)
@@ -81,6 +82,12 @@ Rectangle {
transferView.updateStatus();
}
+ // send from AddressBook
+ function sendTo(address, paymentId, description){
+ root.state = "Transfer";
+ transferView.sendTo(address, paymentId, description);
+ }
+
// XXX: just for memo, to be removed
// states: [
@@ -127,7 +134,7 @@ Rectangle {
PropertyChanges { target: root; currentView: txkeyView }
}, State {
name: "AddressBook"
- PropertyChanges { /*TODO*/ }
+ PropertyChanges { target: root; currentView: addressBookView }
}, State {
name: "Sign"
PropertyChanges { target: root; currentView: signView }