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 5513b90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 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 @@ -3747,8 +3748,11 @@ def __genControllerConstructorBody( self ):
self.controllerConstructorBody += (
_QtIfwScript.ifMaintenanceTool( isMultiLine=True ) +
_QtIfwScript.genResources( self._maintenanceToolResources ) +
EBLK )

EBLK +
(self.controllerConstructorInjection
if self.controllerConstructorInjection else "")
)

def hidePage( pageName ):
self.controllerConstructorBody += (
QtIfwControlScript.hideDefaultPage( pageName ) )
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 5513b90

Please sign in to comment.