an empty window for an activity switcher
still a stub
This commit is contained in:
parent
e6151ac159
commit
8ee1cecd81
@ -19,6 +19,7 @@
|
|||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
|
||||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
|
import org.kde.plasma.components 2.0 as PlasmaComponents
|
||||||
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
@ -30,9 +31,25 @@ Rectangle {
|
|||||||
property Item containment
|
property Item containment
|
||||||
|
|
||||||
function toggleActivityManager() {
|
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: {
|
onContainmentChanged: {
|
||||||
print("New Containment: " + containment);
|
print("New Containment: " + containment);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user