Skip to content

Commit

Permalink
Added QtIfwControlScript.controllerConstructorInjection
Browse files Browse the repository at this point in the history
  • Loading branch information
BuvinJ committed Jan 14, 2021
1 parent 6cb235a commit 2550769
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions distbuilder/qt_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3205,6 +3205,7 @@ def __init__( self,
self.isAutoGlobals = True

self.controllerConstructorBody = None
self.controllerConstructorInjection = None
self.isAutoControllerConstructor = True

self.onValueChangeCallbackBody = None
Expand Down Expand Up @@ -3813,6 +3814,10 @@ def hidePage( pageName ):
self.controllerConstructorBody += (
QtIfwControlScript.__CONTROLER_CONNECT_TMPLT %
(signalName, slotName) )

if self.controllerConstructorInjection:
self.controllerConstructorBody+=self.controllerConstructorInjection

self.controllerConstructorBody += (
TAB + 'var mode = ' + _QtIfwScript.cmdLineArg(
_QtIfwScript.MAINTAIN_MODE_CMD_ARG ) + END +
Expand Down
1 change: 1 addition & 0 deletions docs/ConfigClasses.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ Attributes & default values:
isAutoGlobals = True

controllerConstructorBody = None
controllerConstructorInjection = None
isAutoControllerConstructor = True

onPageChangeCallbackBody = None
Expand Down

0 comments on commit 2550769

Please sign in to comment.