diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-12 17:02:33 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-12 17:02:33 +0800 |
commit | ac14f002e6d861ed646fdcc2febb35b2a3ca57aa (patch) | |
tree | 064eb84c3796cc124291130e912689052e2297f4 /ethereal/assets/qml/views/history.qml | |
parent | c59d7a899b0ca121b3f982fa12405629109f1b47 (diff) | |
download | go-tangerine-ac14f002e6d861ed646fdcc2febb35b2a3ca57aa.tar go-tangerine-ac14f002e6d861ed646fdcc2febb35b2a3ca57aa.tar.gz go-tangerine-ac14f002e6d861ed646fdcc2febb35b2a3ca57aa.tar.bz2 go-tangerine-ac14f002e6d861ed646fdcc2febb35b2a3ca57aa.tar.lz go-tangerine-ac14f002e6d861ed646fdcc2febb35b2a3ca57aa.tar.xz go-tangerine-ac14f002e6d861ed646fdcc2febb35b2a3ca57aa.tar.zst go-tangerine-ac14f002e6d861ed646fdcc2febb35b2a3ca57aa.zip |
Refactored GUI and added modular/pluginable side bar
Diffstat (limited to 'ethereal/assets/qml/views/history.qml')
-rw-r--r-- | ethereal/assets/qml/views/history.qml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ethereal/assets/qml/views/history.qml b/ethereal/assets/qml/views/history.qml new file mode 100644 index 000000000..f50ae8004 --- /dev/null +++ b/ethereal/assets/qml/views/history.qml @@ -0,0 +1,50 @@ +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 iconFile: "../tx.png" + property var title: "Transactions" + + property var txModel: ListModel { + id: txModel + } + + id: historyView + anchors.fill: parent + objectName: "transactionView" + + 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(type, 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}) + } +} |