forked from qt-creator/qt-creator
Squish: Update __getSupportedPlatforms__()
Change-Id: Ia9840c74528c8fb435099ccdffb2f6f1b06b7e77 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -507,7 +507,7 @@ def __getSupportedPlatforms__(text, templateName, getAsStrings=False):
|
|||||||
if templateName.startswith("Qt Quick Application - "):
|
if templateName.startswith("Qt Quick Application - "):
|
||||||
result = set([Targets.DESKTOP_5_10_1_DEFAULT, Targets.DESKTOP_5_14_1_DEFAULT])
|
result = set([Targets.DESKTOP_5_10_1_DEFAULT, Targets.DESKTOP_5_14_1_DEFAULT])
|
||||||
elif 'Supported Platforms' in text:
|
elif 'Supported Platforms' in text:
|
||||||
supports = text[text.find('Supported Platforms'):].split(":")[1].strip().split(" ")
|
supports = text[text.find('Supported Platforms'):].split(":")[1].strip().split("\n")
|
||||||
result = set()
|
result = set()
|
||||||
if 'Desktop' in supports:
|
if 'Desktop' in supports:
|
||||||
if (version == None or version < "5.0") and not templateName.startswith("Qt Quick 2"):
|
if (version == None or version < "5.0") and not templateName.startswith("Qt Quick 2"):
|
||||||
|
Reference in New Issue
Block a user