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 {
property Item reorderItem
property bool onUninstall
property alias deleter: deleter
property var switcher: null
// just for margin purposes
header: Item {
......
......@@ -37,6 +37,8 @@ Item {
property bool closeMode: false
property bool visibleInHome: false
property alias runningAppsCount: switcherModel.itemCount
property var switchModel: switcherModel
property var launcher: null
onVisibleInHomeChanged: {
// Exit close mode when scrolling out of view
......
......@@ -93,12 +93,14 @@ Page {
AppLauncher {
id: launcher
height: pager.height
switcher: switcher
}
AppSwitcher {
id: switcher
width: pager.width
height: pager.height
visibleInHome: x > -width && x < desktop.width
launcher: launcher
}
FeedsPage {
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