Commit 2e98810b authored by Aleksi Suomalainen's avatar Aleksi Suomalainen

[main] Introduce switcher and launcher to each other for co-operation.

parent 125c58e1
...@@ -39,6 +39,7 @@ GridView { ...@@ -39,6 +39,7 @@ GridView {
property Item reorderItem property Item reorderItem
property bool onUninstall property bool onUninstall
property alias deleter: deleter property alias deleter: deleter
property var switcher: null
// just for margin purposes // just for margin purposes
header: Item { header: Item {
......
...@@ -37,6 +37,8 @@ Item { ...@@ -37,6 +37,8 @@ Item {
property bool closeMode: false property bool closeMode: false
property bool visibleInHome: false property bool visibleInHome: false
property alias runningAppsCount: switcherModel.itemCount property alias runningAppsCount: switcherModel.itemCount
property var switchModel: switcherModel
property var launcher: null
onVisibleInHomeChanged: { onVisibleInHomeChanged: {
// Exit close mode when scrolling out of view // Exit close mode when scrolling out of view
......
...@@ -93,12 +93,14 @@ Page { ...@@ -93,12 +93,14 @@ Page {
AppLauncher { AppLauncher {
id: launcher id: launcher
height: pager.height height: pager.height
switcher: switcher
} }
AppSwitcher { AppSwitcher {
id: switcher id: switcher
width: pager.width width: pager.width
height: pager.height height: pager.height
visibleInHome: x > -width && x < desktop.width visibleInHome: x > -width && x < desktop.width
launcher: launcher
} }
FeedsPage { FeedsPage {
id: feeds id: feeds
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment