qmlFrontend/qml/qmlFrontend/GameConfig.qml
author unc0rr
Fri, 26 Sep 2014 00:56:36 +0400
branchqmlfrontend
changeset 10422 4cf23d4c7624
child 10424 4be6cd55f1cf
permissions -rw-r--r--
- Pages - Animations on buttons hovering

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
    }
}