[ui] Expose ScriptEditor Python component to the QML side

This commit is contained in:
Candice Bentéjac 2024-07-02 15:55:25 +02:00
parent ff63860424
commit 73a2a241e7

View file

@ -17,6 +17,7 @@ from meshroom.ui import components
from meshroom.ui.components.clipboard import ClipboardHelper
from meshroom.ui.components.filepath import FilepathHelper
from meshroom.ui.components.scene3D import Scene3DHelper, Transformations3DHelper
from meshroom.ui.components.scriptEditor import ScriptEditorManager
from meshroom.ui.components.thumbnail import ThumbnailCache
from meshroom.ui.palette import PaletteManager
from meshroom.ui.reconstruction import Reconstruction
@ -160,6 +161,7 @@ class MeshroomApp(QApplication):
# additional context properties
self.engine.rootContext().setContextProperty("_PaletteManager", PaletteManager(self.engine, parent=self))
self.engine.rootContext().setContextProperty("ScriptEditorManager", ScriptEditorManager(parent=self))
self.engine.rootContext().setContextProperty("MeshroomApp", self)
# request any potential computation to stop on exit