diff --git a/kwinmultitasking/contents/ui/main.qml b/kwinmultitasking/contents/ui/main.qml index dffc2ac5..039aee07 100644 --- a/kwinmultitasking/contents/ui/main.qml +++ b/kwinmultitasking/contents/ui/main.qml @@ -17,10 +17,19 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . *********************************************************************/ import QtQuick 2.0 +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.kwin 2.0; Item { id: root + function showWindowList() { + if (!mainItemLoader.item) { + mainItemLoader.source = "switcher.qml"; + } + mainItemLoader.item.visible = true; + } + Loader { id: mainItemLoader } @@ -34,6 +43,14 @@ Item { mainItemLoader.item.visible = true; } } + + Loader { + id: panelLoader + } + + Component.onCompleted: { + panelLoader.source = "panel.qml" + } }