aboutsummaryrefslogtreecommitdiff
path: root/components/AddressBookTable.qml
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2016-12-10 02:01:04 +0100
committerJaquee <jaquee.monero@gmail.com>2016-12-14 23:04:13 +0100
commita344f17cd1716c34672e2c201137d772b165da2e (patch)
tree6c59feb8e6ca336499094814d2e2a5900eb91f29 /components/AddressBookTable.qml
parent160a042165b8ff68904b847f46dba4aa95553a62 (diff)
downloadmonzero-gui-a344f17cd1716c34672e2c201137d772b165da2e.tar.gz
monzero-gui-a344f17cd1716c34672e2c201137d772b165da2e.tar.xz
monzero-gui-a344f17cd1716c34672e2c201137d772b165da2e.zip
AddressBook: basic functions
Diffstat (limited to 'components/AddressBookTable.qml')
-rw-r--r--components/AddressBookTable.qml25
1 files changed, 18 insertions, 7 deletions
diff --git a/components/AddressBookTable.qml b/components/AddressBookTable.qml
index 2ad9d2ff..129b932c 100644
--- a/components/AddressBookTable.qml
+++ b/components/AddressBookTable.qml
@@ -77,14 +77,14 @@ ListView {
}
}
- Text {
+ TextEdit {
id: addressText
+ selectByMouse: true
anchors.bottom: descriptionText.bottom
anchors.left: descriptionText.right
anchors.right: dropdown.left
anchors.leftMargin: description.length > 0 ? 12 : 0
- anchors.rightMargin: 12
- elide: Text.ElideRight
+ anchors.rightMargin: 40
font.family: "Arial"
font.pixelSize: 16
font.letterSpacing: -1
@@ -103,17 +103,18 @@ ListView {
font.pixelSize: 12
font.letterSpacing: -1
color: "#535353"
- text: qsTr("Payment ID:") + + translationManager.emptyString
+ text: qsTr("Payment ID:") + translationManager.emptyString
}
- Text {
+ TextEdit {
+ selectByMouse: true;
anchors.bottom: paymentLabel.bottom
anchors.left: paymentLabel.right
anchors.leftMargin: 12
anchors.rightMargin: 12
anchors.right: dropdown.left
- elide: Text.ElideRight
+
font.family: "Arial"
font.pixelSize: 13
font.letterSpacing: -1
@@ -125,7 +126,7 @@ ListView {
id: dropModel
ListElement { name: "<b>Copy address to clipboard</b>"; icon: "../images/dropdownCopy.png" }
ListElement { name: "<b>Send to same destination</b>"; icon: "../images/dropdownSend.png" }
- ListElement { name: "<b>Find similar transactions</b>"; icon: "../images/dropdownSearch.png" }
+// ListElement { name: "<b>Find similar transactions</b>"; icon: "../images/dropdownSearch.png" }
ListElement { name: "<b>Remove from history</b>"; icon: "../images/dropdownDel.png" }
}
@@ -146,6 +147,16 @@ ListView {
onOptionClicked: {
if(option === 0)
clipboard.setText(address)
+ else if(option === 1){
+ console.log("Sending to: ", address +" "+ paymentId);
+ middlePanel.sendTo(address, paymentId, description);
+ leftPanel.selectItem(middlePanel.state)
+ } else if(option === 2){
+ console.log("Delete: ", rowId);
+ currentWallet.addressBookModel.deleteRow(rowId);
+ }
+
+
}
}