diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-22 00:29:59 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-22 00:29:59 +0800 |
commit | 3e8b27c9dc78ffeeefae987e67730fae17707df4 (patch) | |
tree | ccc51eac0f5772d3500b6555325ec97c55a7f0b0 /test_app.qml | |
parent | 95a48cea18eccd4ea2cb298027dbd01bd21f43e8 (diff) | |
download | dexon-3e8b27c9dc78ffeeefae987e67730fae17707df4.tar dexon-3e8b27c9dc78ffeeefae987e67730fae17707df4.tar.gz dexon-3e8b27c9dc78ffeeefae987e67730fae17707df4.tar.bz2 dexon-3e8b27c9dc78ffeeefae987e67730fae17707df4.tar.lz dexon-3e8b27c9dc78ffeeefae987e67730fae17707df4.tar.xz dexon-3e8b27c9dc78ffeeefae987e67730fae17707df4.tar.zst dexon-3e8b27c9dc78ffeeefae987e67730fae17707df4.zip |
WIP library, sample app
Diffstat (limited to 'test_app.qml')
-rw-r--r-- | test_app.qml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test_app.qml b/test_app.qml new file mode 100644 index 000000000..c7593bf12 --- /dev/null +++ b/test_app.qml @@ -0,0 +1,35 @@ +import QtQuick 2.0 +import QtQuick.Controls 1.0; +import QtQuick.Layouts 1.0; +import GoExtensions 1.0 + +ApplicationWindow { + minimumWidth: 500 + maximumWidth: 500 + maximumHeight: 100 + minimumHeight: 100 + + title: "Ethereum Dice" + + TextField { + id: textField + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + placeholderText: "Amount" + } + Label { + id: txHash + anchors.bottom: textField.top + anchors.bottomMargin: 5 + anchors.horizontalCenter: parent.horizontalCenter + } + Button { + anchors.top: textField.bottom + anchors.horizontalCenter: parent.horizontalCenter + anchors.topMargin: 5 + text: "Place bet" + onClicked: { + txHash.text = eth.createTx("e6716f9544a56c530d868e4bfbacb172315bdead", parseInt(textField.text)) + } + } +} |