diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-28 19:20:47 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-28 19:20:47 +0800 |
commit | 0adfa489de3fb88c995246d0b70af8bbd06f8db7 (patch) | |
tree | af34f0c678fc75dda0d186285240beef9aa5b42c /test_app.qml | |
parent | 6db8b5d06a41ef573ec43394a11fd0e668372860 (diff) | |
parent | 560a7073f457a32c9d053f1a4b20f76d949f519d (diff) | |
download | go-tangerine-3d0bfe547bed1b6bdf416cb6efecf082e695b00e.tar.gz go-tangerine-3d0bfe547bed1b6bdf416cb6efecf082e695b00e.tar.zst go-tangerine-3d0bfe547bed1b6bdf416cb6efecf082e695b00e.zip |
Merge branch 'release/0.3.0'0.3.0
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..aace4e881 --- /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 Ethereum 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", textField.text) + } + } +} |