an empty window for an activity switcher

still a stub
This commit is contained in:
Marco Martin 2013-10-22 17:35:54 +02:00
parent e6151ac159
commit 8ee1cecd81

View File

@ -19,6 +19,7 @@
import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
Rectangle {
@ -30,9 +31,25 @@ Rectangle {
property Item containment
function toggleActivityManager() {
console.log("Activity manger toggled")
console.log("Activity manger toggled");
if (sidePanel.visible) {
sidePanel.visible = false;
} else {
sidePanel.visible = true;
sidePanel.height = containment.availableScreenRegion(containment.screen)[0].height;
}
}
PlasmaCore.Dialog {
id: sidePanel
location: PlasmaCore.Types.LeftEdge
mainItem: PlasmaComponents.PageStack {
id: sidePanelStack
width: 250
height: 500
}
}
onContainmentChanged: {
print("New Containment: " + containment);