diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-05 17:44:33 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-05 17:44:33 +0800 |
commit | 827505985652ac164d1f670797396d0f46774fb2 (patch) | |
tree | b4267aa3d891edb4c608d46d3dc1cb86880d6f73 /qml/test_app.qml | |
parent | 833a1a4eab01392b69339762cf8fe443697138a2 (diff) | |
download | dexon-827505985652ac164d1f670797396d0f46774fb2.tar dexon-827505985652ac164d1f670797396d0f46774fb2.tar.gz dexon-827505985652ac164d1f670797396d0f46774fb2.tar.bz2 dexon-827505985652ac164d1f670797396d0f46774fb2.tar.lz dexon-827505985652ac164d1f670797396d0f46774fb2.tar.xz dexon-827505985652ac164d1f670797396d0f46774fb2.tar.zst dexon-827505985652ac164d1f670797396d0f46774fb2.zip |
Moved qml files, conform to the new server model.
QML files got moved to their own directories. QML now has a ui helper
which should find assets in the correct resource directory
Diffstat (limited to 'qml/test_app.qml')
-rw-r--r-- | qml/test_app.qml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/qml/test_app.qml b/qml/test_app.qml new file mode 100644 index 000000000..aace4e881 --- /dev/null +++ b/qml/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) + } + } +} |