forked from qt-creator/qt-creator
Added new qml test and continue refactoring
Refactoring of all helper functions to make it easier to recognize them as such. All helper functions in global shared scripts now follow the scheme __NAME__ Helper functions normally should not get called from outside. Change-Id: I0d02028d3f9de1ad251af9226c0460655bd9c9bd Reviewed-on: http://codereview.qt-project.org/5331 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bill King <bill.king@nokia.com>
This commit is contained in:
committed by
Bill King
parent
ddacec3eb5
commit
11f7dbda77
@@ -16,11 +16,11 @@ def overrideInstallLazySignalHandler():
|
||||
return
|
||||
overridenInstallLazySignalHandlers = True
|
||||
global installLazySignalHandler
|
||||
installLazySignalHandler = addSignalHandlerDict(installLazySignalHandler)
|
||||
installLazySignalHandler = __addSignalHandlerDict__(installLazySignalHandler)
|
||||
|
||||
# avoids adding a handler to a signal twice or more often
|
||||
# do not call this function directly - use overrideInstallLazySignalHandler() instead
|
||||
def addSignalHandlerDict(lazySignalHandlerFunction):
|
||||
def __addSignalHandlerDict__(lazySignalHandlerFunction):
|
||||
global installedSignalHandlers
|
||||
def wrappedFunction(name, signalSignature, handlerFunctionName):
|
||||
handlers = installedSignalHandlers.get("%s____%s" % (name,signalSignature))
|
||||
|
||||
Reference in New Issue
Block a user