/*
* Copyright (C) 2016 The Qt Company Ltd.
+ * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
import QtQuick 2.2
-import QtQuick.Layouts 1.1
-import QtQuick.Controls 1.0
import Home 1.0
Item {
height: cellHeight * 3
cellWidth: 320
cellHeight: 320
+ interactive: false
model: ApplicationModel {}
delegate: MouseArea {
onClicked: {
console.log("app is ", model.id)
pid = launcher.launch(model.id)
- layoutHandler.makeMeVisible(pid)
+ if (1 < pid) {
+ layoutHandler.makeMeVisible(pid)
- applicationArea.visible = true
- appLauncherAreaLauncher.visible = false
- layoutHandler.showAppLayer()
+ applicationArea.visible = true
+ appLauncherAreaLauncher.visible = false
+ layoutHandler.showAppLayer(pid)
+ }
+ else {
+ console.warn("app cannot be launched!")
+ }
}
}
}