mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue