qmlfrontend/Page1Form.ui.qml
author unc0rr
Sun, 07 Jan 2018 09:48:26 +0100
branchqmlfrontend
changeset 12884 66171ce586cc
parent 12876 b544bbbd0696
permissions -rw-r--r--
Fix referencing missing item
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12854
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     1
import QtQuick 2.7
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     2
import QtQuick.Controls 2.0
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     3
import QtQuick.Layouts 1.3
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     4
12876
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
     5
import Hedgewars.Engine 1.0
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
     6
12854
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     7
Item {
12876
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
     8
    property alias button1: button1
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
     9
    property alias previewImage: previewImage
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    10
    property alias gameButton: gameButton
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    11
    width: 1024
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    12
    height: 800
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    13
    property alias tickButton: tickButton
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    14
    property alias item1: item1
12854
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    15
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    16
    RowLayout {
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    17
        anchors.horizontalCenter: parent.horizontalCenter
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    18
        anchors.topMargin: 20
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    19
        anchors.top: parent.top
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    20
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    21
        Button {
12876
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    22
            id: button1
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    23
            text: qsTr("Preview")
12863
fe16fa088b69 Make playing a game possible
unc0rr
parents: 12861
diff changeset
    24
        }
fe16fa088b69 Make playing a game possible
unc0rr
parents: 12861
diff changeset
    25
fe16fa088b69 Make playing a game possible
unc0rr
parents: 12861
diff changeset
    26
        Button {
fe16fa088b69 Make playing a game possible
unc0rr
parents: 12861
diff changeset
    27
            id: gameButton
fe16fa088b69 Make playing a game possible
unc0rr
parents: 12861
diff changeset
    28
            text: qsTr("Game")
12854
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    29
        }
12876
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    30
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    31
        Button {
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    32
            id: tickButton
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    33
            text: qsTr("Tick")
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    34
        }
12854
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    35
    }
12861
488782d9aba9 Recreate uFLRunQueue in Qt, render previews
unc0rr
parents: 12858
diff changeset
    36
488782d9aba9 Recreate uFLRunQueue in Qt, render previews
unc0rr
parents: 12858
diff changeset
    37
    Image {
488782d9aba9 Recreate uFLRunQueue in Qt, render previews
unc0rr
parents: 12858
diff changeset
    38
        id: previewImage
12876
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    39
        x: 8
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    40
        y: 20
12861
488782d9aba9 Recreate uFLRunQueue in Qt, render previews
unc0rr
parents: 12858
diff changeset
    41
        width: 256
488782d9aba9 Recreate uFLRunQueue in Qt, render previews
unc0rr
parents: 12858
diff changeset
    42
        height: 128
488782d9aba9 Recreate uFLRunQueue in Qt, render previews
unc0rr
parents: 12858
diff changeset
    43
        source: "qrc:/res/iconTime.png"
488782d9aba9 Recreate uFLRunQueue in Qt, render previews
unc0rr
parents: 12858
diff changeset
    44
        cache: false
488782d9aba9 Recreate uFLRunQueue in Qt, render previews
unc0rr
parents: 12858
diff changeset
    45
    }
12876
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    46
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    47
    GameView {
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    48
        id: item1
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    49
        x: 8
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    50
        y: 154
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    51
        width: 1008
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    52
        height: 638
b544bbbd0696 Break engine completely and make it render in frontend window (no actual rendering yet, just white screen)
unc0rr
parents: 12863
diff changeset
    53
    }
12854
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    54
}