aboutsummaryrefslogtreecommitdiffstats
path: root/sample-qml/MainForm.ui.qml
diff options
context:
space:
mode:
authorJens Bocklage <jens_bocklage@mentor.com>2016-11-30 12:32:42 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2016-11-30 12:32:42 +0000
commit39f2f48669ce3a92ccf267d44a7c36beb8abba35 (patch)
tree4ff157d81c1b4efeb5056f74d1954d18f59f3cb1 /sample-qml/MainForm.ui.qml
parent4ccab203994f2472641c429bb4b86535c5128884 (diff)
parentf8ca548fa047968383e9275ead76eacce90fd0a8 (diff)
Merge "Add sample qml application"
Diffstat (limited to 'sample-qml/MainForm.ui.qml')
-rw-r--r--sample-qml/MainForm.ui.qml82
1 files changed, 82 insertions, 0 deletions
diff --git a/sample-qml/MainForm.ui.qml b/sample-qml/MainForm.ui.qml
new file mode 100644
index 0000000..23f26fb
--- /dev/null
+++ b/sample-qml/MainForm.ui.qml
@@ -0,0 +1,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
+ }
+}