From 3a3047e6f2cd4dab84a0a3f047e223ef1bf84b61 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Mon, 21 Sep 2020 15:20:59 +0300 Subject: Init homescreen-demo-ci app Bug-AGL: SPEC-3592 Signed-off-by: Marius Vlad Change-Id: Id58ed059cdd44c2931a7b5d67970cbafd9e25002 --- shell/qml/background.qml | 11 +++++++++++ shell/qml/bg.qml | 27 +++++++++++++++++++++++++++ shell/qml/bottom.qml | 13 +++++++++++++ shell/qml/left.qml | 13 +++++++++++++ shell/qml/main.qml | 12 ++++++++++++ shell/qml/qml.qrc | 9 +++++++++ shell/qml/right.qml | 13 +++++++++++++ shell/qml/top.qml | 13 +++++++++++++ 8 files changed, 111 insertions(+) create mode 100644 shell/qml/background.qml create mode 100644 shell/qml/bg.qml create mode 100644 shell/qml/bottom.qml create mode 100644 shell/qml/left.qml create mode 100644 shell/qml/main.qml create mode 100644 shell/qml/qml.qrc create mode 100644 shell/qml/right.qml create mode 100644 shell/qml/top.qml (limited to 'shell/qml') diff --git a/shell/qml/background.qml b/shell/qml/background.qml new file mode 100644 index 0000000..88b95c0 --- /dev/null +++ b/shell/qml/background.qml @@ -0,0 +1,11 @@ +import QtQuick 2.11 +import QtQuick.Window 2.11 + +Window { + id: background + width: Screen.width + height: Screen.height + flags: Qt.FramelessWindowHint + visible: true + color: '#fff000' +} diff --git a/shell/qml/bg.qml b/shell/qml/bg.qml new file mode 100644 index 0000000..9c8aedb --- /dev/null +++ b/shell/qml/bg.qml @@ -0,0 +1,27 @@ +import QtQuick 2.2 +import QtQuick.Window 2.11 +import QtQuick.Layouts 1.1 + +Window { + visible: true + flags: Qt.FramelessWindowHint + + //width: Screen.width + width: 300 + //height: Screen.height + height: 400 + + title: 'HomeScreen bg' + + color: 'red' + + property string appid: 'naq-activate' + + MouseArea { + anchors.fill: parent + onClicked: { + console.log('activating ' + appid) + shell.activate_app(Window.window, appid) + } + } +} diff --git a/shell/qml/bottom.qml b/shell/qml/bottom.qml new file mode 100644 index 0000000..088539a --- /dev/null +++ b/shell/qml/bottom.qml @@ -0,0 +1,13 @@ +import QtQuick 2.2 +import QtQuick.Window 2.11 +import QtQuick.Layouts 1.1 + +Window { + visible: true + flags: Qt.FramelessWindowHint + width: Screen.width + height: 216 + title: 'HomeScreen bottom' + + color: 'green' +} diff --git a/shell/qml/left.qml b/shell/qml/left.qml new file mode 100644 index 0000000..9d1a0c9 --- /dev/null +++ b/shell/qml/left.qml @@ -0,0 +1,13 @@ +import QtQuick 2.2 +import QtQuick.Window 2.11 +import QtQuick.Layouts 1.1 + +Window { + visible: true + flags: Qt.FramelessWindowHint + width: Screen.width * (240.0 / 768.0) + height: Screen.height + title: 'HomeScreen left' + + color: 'yellow' +} diff --git a/shell/qml/main.qml b/shell/qml/main.qml new file mode 100644 index 0000000..f0178a0 --- /dev/null +++ b/shell/qml/main.qml @@ -0,0 +1,12 @@ +import QtQuick 2.2 +import QtQuick.Window 2.11 +import QtQuick.Layouts 1.1 + +Window { + visible: true + flags: Qt.FramelessWindowHint + width: Screen.width + height: Screen.height + title: 'HomeScreen' + color: '#ff00ff00' +} diff --git a/shell/qml/qml.qrc b/shell/qml/qml.qrc new file mode 100644 index 0000000..3804b1b --- /dev/null +++ b/shell/qml/qml.qrc @@ -0,0 +1,9 @@ + + + bg.qml + top.qml + bottom.qml + left.qml + right.qml + + diff --git a/shell/qml/right.qml b/shell/qml/right.qml new file mode 100644 index 0000000..1202837 --- /dev/null +++ b/shell/qml/right.qml @@ -0,0 +1,13 @@ +import QtQuick 2.2 +import QtQuick.Window 2.11 +import QtQuick.Layouts 1.1 + +Window { + visible: true + flags: Qt.FramelessWindowHint + width: Screen.width * (240.0 / 768.0) + height: Screen.height + title: 'HomeScreen right' + + color: 'purple' +} diff --git a/shell/qml/top.qml b/shell/qml/top.qml new file mode 100644 index 0000000..22abcfb --- /dev/null +++ b/shell/qml/top.qml @@ -0,0 +1,13 @@ +import QtQuick 2.2 +import QtQuick.Window 2.11 +import QtQuick.Layouts 1.1 + +Window { + visible: true + flags: Qt.FramelessWindowHint + width: Screen.width + height: 216 + title: 'HomeScreen top' + + color: 'blue' +} -- cgit 1.2.3-korg