Commit 89d08bf4 authored by Robert Loehning's avatar Robert Loehning

Squish: Update createNewQtQuickApplication() and calling code

This is only meant to let the wizard finish successfully. Further
changes will be needed because of changed code in the project.

Change-Id: Ic88ffa107f15c55b3278d3d6fc4d3c2dbc4d728b
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent b7cdd90e
......@@ -281,12 +281,12 @@ def createProject_Qt_Console(path, projectName, checks = True, buildSystem = Non
return checkedTargets
def createNewQtQuickApplication(workingDir, projectName = None,
targets=Targets.desktopTargetClasses(), minimumQtVersion="5.3",
targets=Targets.desktopTargetClasses(), minimumQtVersion="5.6",
withControls = False, fromWelcome = False, buildSystem = None):
if withControls:
template = "Qt Quick Controls 2 Application"
template = "Qt Quick Application - Swipe"
else:
template = "Qt Quick Application"
template = "Qt Quick Application - Empty"
available = __createProjectOrFileSelectType__(" Application", template, fromWelcome)
projectName = __createProjectSetNameAndPath__(workingDir, projectName)
__handleBuildSystem__(buildSystem)
......
......@@ -30,17 +30,11 @@ def main():
if not startedWithoutPluginError():
return
available = [("5.3", False), ("5.3", True)]
if platform.system() != 'Darwin':
available.extend([("5.4", False), ("5.4", True)])
available = [("5.6", False), ("5.6", True)]
for qtVersion, controls in available:
if qtVersion == "5.3":
targ = [Targets.DESKTOP_531_DEFAULT]
quick = "2.3"
else:
targ = [Targets.DESKTOP_541_GCC]
quick = "2.4"
targ = [Targets.DESKTOP_561_DEFAULT]
quick = "2.6"
# using a temporary directory won't mess up a potentially existing
workingDir = tempDir()
checkedTargets, projectName = createNewQtQuickApplication(workingDir, targets=targ,
......
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