forked from qt-creator/qt-creator
Squish: Fix expected targets for widget app wizard
Reverts cd45ce5f39.
Change-Id: I6865e6c91fd961ac36da160a01c676f5274c40cc
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -541,15 +541,13 @@ def __getSupportedPlatforms__(text, templateName, getAsStrings=False):
|
||||
supports = text[text.find('Supported Platforms'):].split(":")[1].strip().split(" ")
|
||||
result = []
|
||||
if 'Desktop' in supports:
|
||||
if version == None or version < "5.0":
|
||||
if (version == None or version < "5.0") and templateName != "Qt Widgets Application":
|
||||
result.append(Targets.DESKTOP_4_8_7_DEFAULT)
|
||||
if platform.system() in ("Linux", "Darwin"):
|
||||
result.append(Targets.EMBEDDED_LINUX)
|
||||
result.extend([Targets.DESKTOP_5_6_1_DEFAULT, Targets.DESKTOP_5_10_1_DEFAULT])
|
||||
if platform.system() != 'Darwin':
|
||||
result.append(Targets.DESKTOP_5_4_1_GCC)
|
||||
if templateName == "Qt Widgets Application":
|
||||
result.remove(Targets.DESKTOP_4_8_7_DEFAULT)
|
||||
elif 'Platform independent' in text:
|
||||
result = Targets.desktopTargetClasses()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user