qmlfrontend/Page1.qml
author unc0rr
Tue, 26 Dec 2017 01:36:58 +0100
branchqmlfrontend
changeset 12866 488782d9aba9
parent 12863 0c6fb706f747
child 12868 fe16fa088b69
permissions -rw-r--r--
Recreate uFLRunQueue in Qt, render previews

import QtQuick 2.7
import Hedgewars.Engine 1.0

Page1Form {
  button1.onClicked: {
    console.log("Button clicked")
    HWEngine.getPreview()
  }

  Connections {
      target: HWEngine
      onPreviewImageChanged: {
          previewImage.source = "image://preview/image"
      }
      onPreviewIsRendering: {
        console.log("==========")
          previewImage.source = "qrc:/res/iconTime.png"
      }
      onPreviewHogCountChanged: {
      }
  }

}