mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
36 lines
692 B
QML
36 lines
692 B
QML
|
/*
|
||
|
SPDX-FileCopyrightText: 2014 Aaron Seigo <aseigo@kde.org>
|
||
|
|
||
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
||
|
*/
|
||
|
|
||
|
import QtQuick 2.0
|
||
|
|
||
|
import org.kde.plasma.private.shell 2.0
|
||
|
|
||
|
Item {
|
||
|
id: main
|
||
|
|
||
|
property string scriptPath
|
||
|
property alias mode: interactiveConsole.mode
|
||
|
signal visibleChanged(bool visible)
|
||
|
|
||
|
onScriptPathChanged: {
|
||
|
interactiveConsole.loadScript(scriptPath);
|
||
|
}
|
||
|
|
||
|
InteractiveConsoleWindow {
|
||
|
id: interactiveConsole
|
||
|
|
||
|
onVisibleChanged: {
|
||
|
main.visibleChanged(visible);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Component.onCompleted: {
|
||
|
interactiveConsole.scriptEngine = scriptEngine;
|
||
|
interactiveConsole.visible = true;
|
||
|
}
|
||
|
}
|
||
|
|