aboutsummaryrefslogtreecommitdiffstats
path: root/sample-qml/MainForm.ui.qml
blob: 23f26fb35e39def3bdf4473d94e1bda9552b3a92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import QtQuick 2.6

Rectangle {
    id: rectangle1
    property alias mouseArea: mouseArea

    width: 360
    height: 360
    color: "#dfe259"
    property alias layout_permission: layout_permission
    z: 2147483646
    property alias image1: image1

    MouseArea {
        id: mouseArea
        anchors.rightMargin: 0
        anchors.bottomMargin: 0
        anchors.leftMargin: 0
        anchors.topMargin: 0
        anchors.fill: parent

        Rectangle {
            id: layout_permission
            x: 35
            y: 53
            width: 160
            height: 47
            gradient: Gradient {
                GradientStop {
                    position: 0
                    color: "#ffffff"
                }

                GradientStop {
                    position: 1
                    color: "#ecfcec"
                }
            }
            signal buttonClick()


            Text {
                id: text1
                x: 5
                y: 9
                width: 151
                height: 30
                color: "#f25728"
                text: qsTr("Ask layout permission")
                style: Text.Normal
                styleColor: "#86ecae"
                verticalAlignment: Text.AlignVCenter
                horizontalAlignment: Text.AlignHCenter
                wrapMode: Text.NoWrap
                font.pixelSize: 12
            }
        }

        Image {
            id: image1
            x: -2
            y: 90
            width: 360
            height: 267
            opacity: 0.2
            z: 0
            source: "agl-image.png"
        }
    }

    Text {
        text: "AGL sample app"
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 326
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 17
        font.italic: true
        font.bold: true
        anchors.horizontalCenterOffset: -104
    }
}