mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 16:39:00 +08:00
Also expose the main Cura application object as CuraApplication to QML
This way we can start cleaning things up and moving away from the "Printer" name Contributes to CURA-341
This commit is contained in:
parent
750ecfc2e1
commit
8476090ed2
@ -414,6 +414,7 @@ class CuraApplication(QtApplication):
|
||||
# \param engine The QML engine.
|
||||
def registerObjects(self, engine):
|
||||
engine.rootContext().setContextProperty("Printer", self)
|
||||
engine.rootContext().setContextProperty("CuraApplication", self)
|
||||
self._print_information = PrintInformation.PrintInformation()
|
||||
engine.rootContext().setContextProperty("PrintInformation", self._print_information)
|
||||
self._cura_actions = CuraActions.CuraActions(self)
|
||||
|
Loading…
x
Reference in New Issue
Block a user