aboutsummaryrefslogtreecommitdiffstats
path: root/mist/assets/qml/views/history.qml
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-19 19:33:15 +0800
committerobscuren <geffobscura@gmail.com>2014-09-19 19:34:37 +0800
commitae1de6593c31fbaa4429588cea2702dd5b01a722 (patch)
treed19c960d08524f0c5449ba87ab7ef4054b782b32 /mist/assets/qml/views/history.qml
parent723074e71bbe1638a5cec9b996b1eed07a76fd72 (diff)
downloadgo-tangerine-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar.gz
go-tangerine-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar.zst
go-tangerine-ae1de6593c31fbaa4429588cea2702dd5b01a722.zip
renamed
Diffstat (limited to 'mist/assets/qml/views/history.qml')
-rw-r--r--mist/assets/qml/views/history.qml52
1 files changed, 52 insertions, 0 deletions
diff --git a/mist/assets/qml/views/history.qml b/mist/assets/qml/views/history.qml
new file mode 100644
index 000000000..9eee883e3
--- /dev/null
+++ b/mist/assets/qml/views/history.qml
@@ -0,0 +1,52 @@
+import QtQuick 2.0
+import QtQuick.Controls 1.0;
+import QtQuick.Layouts 1.0;
+import QtQuick.Dialogs 1.0;
+import QtQuick.Window 2.1;
+import QtQuick.Controls.Styles 1.1
+import Ethereum 1.0
+
+Rectangle {
+ property var iconSource: "../tx.png"
+ property var title: "Transactions"
+ property var menuItem
+
+
+ id: historyView
+ visible: false
+ anchors.fill: parent
+ objectName: "transactionView"
+
+ property var txModel: ListModel {
+ id: txModel
+ }
+ TableView {
+ id: txTableView
+ anchors.fill: parent
+ TableViewColumn{ role: "inout" ; title: "" ; width: 40 }
+ TableViewColumn{ role: "value" ; title: "Value" ; width: 100 }
+ TableViewColumn{ role: "address" ; title: "Address" ; width: 430 }
+ TableViewColumn{ role: "contract" ; title: "Contract" ; width: 100 }
+
+ model: txModel
+ }
+
+ function addTx(tx, inout) {
+ var isContract
+ if (tx.contract == true){
+ isContract = "Yes"
+ }else{
+ isContract = "No"
+ }
+
+
+ var address;
+ if(inout == "recv") {
+ address = tx.sender;
+ } else {
+ address = tx.address;
+ }
+
+ txModel.insert(0, {inout: inout, hash: tx.hash, address: address, value: tx.value, contract: isContract})
+ }
+}