diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2020-09-21 15:20:59 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-09-23 16:31:52 +0300 |
commit | 3a3047e6f2cd4dab84a0a3f047e223ef1bf84b61 (patch) | |
tree | 0c8ac17733fb102712d1116891acc81df9d926d0 /shell/qml | |
parent | 2faeef2e633d51c3e818b7a493e14e072e38cf34 (diff) |
Init homescreen-demo-ci app
Bug-AGL: SPEC-3592
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Id58ed059cdd44c2931a7b5d67970cbafd9e25002
Diffstat (limited to 'shell/qml')
-rw-r--r-- | shell/qml/background.qml | 11 | ||||
-rw-r--r-- | shell/qml/bg.qml | 27 | ||||
-rw-r--r-- | shell/qml/bottom.qml | 13 | ||||
-rw-r--r-- | shell/qml/left.qml | 13 | ||||
-rw-r--r-- | shell/qml/main.qml | 12 | ||||
-rw-r--r-- | shell/qml/qml.qrc | 9 | ||||
-rw-r--r-- | shell/qml/right.qml | 13 | ||||
-rw-r--r-- | shell/qml/top.qml | 13 |
8 files changed, 111 insertions, 0 deletions
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 @@ +<RCC> + <qresource prefix="/"> + <file>bg.qml</file> + <file>top.qml</file> + <file>bottom.qml</file> + <file>left.qml</file> + <file>right.qml</file> + </qresource> +</RCC> 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' +} |