aboutsummaryrefslogtreecommitdiff
path: root/components/DashboardTable.qml
diff options
context:
space:
mode:
authormarcin <z.krzysztoff7@gmail.com>2014-07-16 14:40:09 +0200
committermarcin <z.krzysztoff7@gmail.com>2014-07-16 14:40:09 +0200
commit2eddebe1c2c41f8a9be56862f355251d5d34f18f (patch)
tree4a34053a6d1db2718596b18c262a2b0ab4bf30e1 /components/DashboardTable.qml
parent855d5736c509363dd47e091210f2f3fe64ad9117 (diff)
downloadmonzero-gui-2eddebe1c2c41f8a9be56862f355251d5d34f18f.tar.gz
monzero-gui-2eddebe1c2c41f8a9be56862f355251d5d34f18f.tar.xz
monzero-gui-2eddebe1c2c41f8a9be56862f355251d5d34f18f.zip
https://trello.com/c/LXEnXYLF/42-fix-monero-logo
https://trello.com/c/VpuuPT5L/27-per-transaction-descriptions-should-be-removed-from-dashboard-history-as-discussed https://trello.com/c/wy3nFH3g/30-please-add-ctrl-tab-ctrl-shift-tab-shortcut-keys-to-rotate-between-tabs https://trello.com/c/6Y6kOXsU/44-add-monero-title-to-the-main-window
Diffstat (limited to 'components/DashboardTable.qml')
-rw-r--r--components/DashboardTable.qml34
1 files changed, 29 insertions, 5 deletions
diff --git a/components/DashboardTable.qml b/components/DashboardTable.qml
index cbd1c8d0..1b0d0f69 100644
--- a/components/DashboardTable.qml
+++ b/components/DashboardTable.qml
@@ -1,5 +1,6 @@
import QtQuick 2.0
import "../components"
+import moneroComponents 1.0
ListView {
id: listView
@@ -36,30 +37,39 @@ ListView {
}
Text {
- id: paymentIdText
- width: text.length ? 120 : 0
+ id: descriptionText
+ width: text.length ? (descriptionArea.containsMouse ? parent.width - x - 12 : 120) : 0
anchors.verticalCenter: dot.verticalCenter
font.family: "Arial"
font.bold: true
font.pixelSize: 19
color: "#444444"
elide: Text.ElideRight
- text: paymentId
+ text: description
+
+ MouseArea {
+ id: descriptionArea
+ anchors.fill: parent
+ hoverEnabled: true
+ }
}
Item { //separator
- width: paymentIdText.width ? 12 : 0
+ width: descriptionText.width ? 12 : 0
height: 14
+ visible: !descriptionArea.containsMouse
}
Text {
+ id: addressText
anchors.verticalCenter: dot.verticalCenter
width: parent.width - x - 12
elide: Text.ElideRight
font.family: "Arial"
font.pixelSize: 14
color: "#545454"
- text: description.length > 0 ? description : address
+ text: address
+ visible: !descriptionArea.containsMouse
}
}
@@ -173,12 +183,22 @@ ListView {
color: "#DBDBDB"
}
+ ListModel {
+ id: dropModel
+ ListElement { name: "<b>Copy address to clipboard</b>"; icon: "../images/dropdownCopy.png" }
+ ListElement { name: "<b>Add to address book</b>"; icon: "../images/dropdownAdd.png" }
+ ListElement { name: "<b>Send to same destination</b>"; icon: "../images/dropdownSend.png" }
+ ListElement { name: "<b>Find similar transactions</b>"; icon: "../images/dropdownSearch.png" }
+ }
+
+ Clipboard { id: clipboard }
TableDropdown {
id: dropdown
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.bottomMargin: 11
anchors.rightMargin: 5
+ dataModel: dropModel
onExpandedChanged: {
if(listView.previousItem !== undefined && listView.previousItem !== delegate)
listView.previousItem.collapseDropdown()
@@ -189,6 +209,10 @@ ListView {
}
}
onCollapsed: delegate.z = 0
+ onOptionClicked: {
+ if(option === 0)
+ clipboard.setText(address)
+ }
}
}
}