Commit f5ec3f42 authored by Robert Loehning's avatar Robert Loehning

Squish: Make some variables local

Change-Id: I1687ae59c6327616ee18f6120dca9d0d0ce40bcf
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 1362d9d2
......@@ -35,10 +35,6 @@ installedSignalHandlers = {}
overridenInstallLazySignalHandlers = False
# flag to indicate whether a tasks file should be created when building ends with errors
createTasksFileOnError = True
# currently used directory for tasks files
tasksFileDir = None
# counter for written tasks files
tasksFileCount = 0
# call this function to override installLazySignalHandler()
def overrideInstallLazySignalHandler():
......@@ -117,9 +113,14 @@ def dumpBuildIssues(listModel):
range(Qt.UserRole, Qt.UserRole + 6))])
return issueDump
# counter for written tasks files
tasksFileCount = 0
# helper method that writes a tasks file
def createTasksFile(buildIssues):
global tasksFileDir, tasksFileCount
# currently used directory for tasks files
tasksFileDir = None
global tasksFileCount
if tasksFileDir == None:
tasksFileDir = os.getcwd() + "/tasks"
tasksFileDir = os.path.abspath(tasksFileDir)
......
......@@ -29,11 +29,9 @@
source("../../shared/qtcreator.py")
templateDir = None
searchFinished = False
def main():
global templateDir
sourceExample = os.path.abspath(sdkPath + "/Examples/4.7/declarative/keyinteraction/focus")
proFile = "focus.pro"
if not neededFilePresent(os.path.join(sourceExample, proFile)):
......
......@@ -43,7 +43,6 @@ def init():
endShortCut = "<Ctrl+End>"
def main():
global cppEditorStr
folder = prepareTemplate(originalSources)
if folder == None:
test.fatal("Could not prepare test files - leaving test")
......
......@@ -75,7 +75,7 @@ def processChildren(model, startIndex, level):
return children
def testModify():
global qmlEditor, outline
global qmlEditor
if not openDocument("focus.QML.qml.focus\\.qml"):
test.fatal("Failed to open file focus.qml")
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment