qmlFrontend/qml/qmlFrontend/GameConfig.qml
branchqmlfrontend
changeset 10422 4cf23d4c7624
child 10424 4be6cd55f1cf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qmlFrontend/qml/qmlFrontend/GameConfig.qml	Fri Sep 26 00:56:36 2014 +0400
@@ -0,0 +1,30 @@
+import QtQuick 2.0
+import Hedgewars.Engine 1.0
+
+Rectangle {
+    HWButton {
+        id: btnPreview
+        x: 50
+        y: 66
+        width: 150
+        height: 150
+
+        onClicked: {
+            HWEngine.run()
+        }
+
+        Connections {
+            target: HWEngine
+            onPreviewImageChanged: previewImage.source = "image://preview/1"
+        }
+    }
+
+    Image {
+        id: previewImage
+        x: 210
+        y: 70
+        width: 256
+        height: 128
+        cache: false
+    }
+}