3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-15 11:45:54 +00:00
Brooklyn/plasma/desktoppackage/contents/InteractiveConsole.qml

36 lines
692 B
QML
Raw Normal View History

2022-04-02 18:24:21 +05:00
/*
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;
}
}