diff options
author | Kazumasa Mitsunari <kazumasa_mitsunari_za@mail.toyota.co.jp> | 2016-11-30 20:11:48 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <kazumasa_mitsunari_za@mail.toyota.co.jp> | 2016-11-30 20:11:48 +0900 |
commit | f8ca548fa047968383e9275ead76eacce90fd0a8 (patch) | |
tree | f442935d6e2bc0964ef10760d6e6486b5bfd233e /sample-qml/MainForm.ui.qml | |
parent | 75a4e94d7610db25c98f05cdda9491f4e7c0a4db (diff) |
Add sample qml application
It is sample application(HVAC).
This app is used for debuging, for reference of HomeScreen API use and so on.
Signed-off-by: Kazumasa Mitsunari <kazumasa_mitsunari_za@mail.toyota.co.jp>
Diffstat (limited to 'sample-qml/MainForm.ui.qml')
-rw-r--r-- | sample-qml/MainForm.ui.qml | 82 |
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 + } +} |