/* SPDX-FileCopyrightText: 2014 Aaron Seigo 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; } }