aerothemeplasma/plasma/shells/org.kde.plasma.desktop/contents/InteractiveConsole.qml
2024-08-09 03:20:25 +02:00

35 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;
}
}