forked from qt-creator/qt-creator
Squish: Update Qt version names and constants
As a preparation for using Qt 5.10, these need to handle two-digit minor versions. Change-Id: I2a47606ee801a28df12d75323b480f8ee583893b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
||||||
<value type="QString" key="PE.Profile.Id">{fc5f34fd-e703-4f4c-85ce-ea5bf5869e6a}</value>
|
<value type="QString" key="PE.Profile.Id">{fc5f34fd-e703-4f4c-85ce-ea5bf5869e6a}</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
||||||
<value type="QString" key="PE.Profile.Name">Desktop 561 default</value>
|
<value type="QString" key="PE.Profile.Name">Desktop 5.6.1 default</value>
|
||||||
<value type="bool" key="PE.Profile.SDK">false</value>
|
<value type="bool" key="PE.Profile.SDK">false</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
||||||
<value type="QString" key="PE.Profile.Id">{1dcb5509-1670-470d-80a5-8a988f36e4e2}</value>
|
<value type="QString" key="PE.Profile.Id">{1dcb5509-1670-470d-80a5-8a988f36e4e2}</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
||||||
<value type="QString" key="PE.Profile.Name">Desktop 487 default</value>
|
<value type="QString" key="PE.Profile.Name">Desktop 4.8.7 default</value>
|
||||||
<value type="bool" key="PE.Profile.SDK">false</value>
|
<value type="bool" key="PE.Profile.SDK">false</value>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</data>
|
</data>
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
||||||
<value type="QString" key="PE.Profile.Id">{a1e860d1-c241-4abf-80fe-cf0c9f0a43b3}</value>
|
<value type="QString" key="PE.Profile.Id">{a1e860d1-c241-4abf-80fe-cf0c9f0a43b3}</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
||||||
<value type="QString" key="PE.Profile.Name">Desktop 531 default</value>
|
<value type="QString" key="PE.Profile.Name">Desktop 5.3.1 default</value>
|
||||||
<value type="bool" key="PE.Profile.SDK">false</value>
|
<value type="bool" key="PE.Profile.SDK">false</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
|
@@ -44,7 +44,7 @@
|
|||||||
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
||||||
<value type="QString" key="PE.Profile.Id">{1dcb5509-1670-470d-80a5-8a988f36e4e2}</value>
|
<value type="QString" key="PE.Profile.Id">{1dcb5509-1670-470d-80a5-8a988f36e4e2}</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
||||||
<value type="QString" key="PE.Profile.Name">Desktop 487 default</value>
|
<value type="QString" key="PE.Profile.Name">Desktop 4.8.7 default</value>
|
||||||
<value type="bool" key="PE.Profile.SDK">false</value>
|
<value type="bool" key="PE.Profile.SDK">false</value>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
</data>
|
</data>
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
||||||
<value type="QString" key="PE.Profile.Id">{e91398ba-6443-4b02-b416-782a70d9df90}</value>
|
<value type="QString" key="PE.Profile.Id">{e91398ba-6443-4b02-b416-782a70d9df90}</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
||||||
<value type="QString" key="PE.Profile.Name">Desktop 531 default</value>
|
<value type="QString" key="PE.Profile.Name">Desktop 5.3.1 default</value>
|
||||||
<value type="bool" key="PE.Profile.SDK">false</value>
|
<value type="bool" key="PE.Profile.SDK">false</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
||||||
<value type="QString" key="PE.Profile.Id">{8ca91e21-c12e-4876-85b3-4b2141708acb}</value>
|
<value type="QString" key="PE.Profile.Id">{8ca91e21-c12e-4876-85b3-4b2141708acb}</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
||||||
<value type="QString" key="PE.Profile.Name">Desktop 541 GCC</value>
|
<value type="QString" key="PE.Profile.Name">Desktop 5.4.1 GCC</value>
|
||||||
<value type="bool" key="PE.Profile.SDK">false</value>
|
<value type="bool" key="PE.Profile.SDK">false</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
||||||
<value type="QString" key="PE.Profile.Id">{542217c7-ce0f-48f7-843b-d4fad339688d}</value>
|
<value type="QString" key="PE.Profile.Id">{542217c7-ce0f-48f7-843b-d4fad339688d}</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
||||||
<value type="QString" key="PE.Profile.Name">Desktop 561 default</value>
|
<value type="QString" key="PE.Profile.Name">Desktop 5.6.1 default</value>
|
||||||
<value type="bool" key="PE.Profile.SDK">false</value>
|
<value type="bool" key="PE.Profile.SDK">false</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
||||||
<value type="QString" key="PE.Profile.Id">{9b35bbe6-25a7-4cce-ba07-487c795f5265}</value>
|
<value type="QString" key="PE.Profile.Id">{9b35bbe6-25a7-4cce-ba07-487c795f5265}</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
||||||
<value type="QString" key="PE.Profile.Name">Desktop 487 default</value>
|
<value type="QString" key="PE.Profile.Name">Desktop 4.8.7 default</value>
|
||||||
<value type="bool" key="PE.Profile.SDK">false</value>
|
<value type="bool" key="PE.Profile.SDK">false</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
||||||
<value type="QString" key="PE.Profile.Id">{6a95566e-8372-4372-8286-ef73af7de191}</value>
|
<value type="QString" key="PE.Profile.Id">{6a95566e-8372-4372-8286-ef73af7de191}</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
||||||
<value type="QString" key="PE.Profile.Name">Desktop 531 default</value>
|
<value type="QString" key="PE.Profile.Name">Desktop 5.3.1 default</value>
|
||||||
<value type="bool" key="PE.Profile.SDK">false</value>
|
<value type="bool" key="PE.Profile.SDK">false</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
||||||
<value type="QString" key="PE.Profile.Id">{10cf33c5-e36d-4a49-a8c7-086f3cf59695}</value>
|
<value type="QString" key="PE.Profile.Id">{10cf33c5-e36d-4a49-a8c7-086f3cf59695}</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
||||||
<value type="QString" key="PE.Profile.Name">Desktop 541 GCC</value>
|
<value type="QString" key="PE.Profile.Name">Desktop 5.4.1 GCC</value>
|
||||||
<value type="bool" key="PE.Profile.SDK">false</value>
|
<value type="bool" key="PE.Profile.SDK">false</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
<value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
|
||||||
<value type="QString" key="PE.Profile.Id">{f9c7858c-d167-4b78-847a-91943bd0af07}</value>
|
<value type="QString" key="PE.Profile.Id">{f9c7858c-d167-4b78-847a-91943bd0af07}</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
|
||||||
<value type="QString" key="PE.Profile.Name">Desktop 561 default</value>
|
<value type="QString" key="PE.Profile.Name">Desktop 5.6.1 default</value>
|
||||||
<value type="bool" key="PE.Profile.SDK">false</value>
|
<value type="bool" key="PE.Profile.SDK">false</value>
|
||||||
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
<valuelist type="QVariantList" key="PE.Profile.StickyInfo"/>
|
||||||
</valuemap>
|
</valuemap>
|
||||||
|
@@ -30,11 +30,11 @@ import operator
|
|||||||
class Targets:
|
class Targets:
|
||||||
ALL_TARGETS = tuple(map(lambda x: 2 ** x , range(5)))
|
ALL_TARGETS = tuple(map(lambda x: 2 ** x , range(5)))
|
||||||
|
|
||||||
(DESKTOP_487_DEFAULT,
|
(DESKTOP_4_8_7_DEFAULT,
|
||||||
EMBEDDED_LINUX,
|
EMBEDDED_LINUX,
|
||||||
DESKTOP_531_DEFAULT,
|
DESKTOP_5_3_1_DEFAULT,
|
||||||
DESKTOP_541_GCC,
|
DESKTOP_5_4_1_GCC,
|
||||||
DESKTOP_561_DEFAULT) = ALL_TARGETS
|
DESKTOP_5_6_1_DEFAULT) = ALL_TARGETS
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def availableTargetClasses():
|
def availableTargetClasses():
|
||||||
@@ -42,7 +42,7 @@ class Targets:
|
|||||||
if platform.system() in ('Windows', 'Microsoft'):
|
if platform.system() in ('Windows', 'Microsoft'):
|
||||||
availableTargets.remove(Targets.EMBEDDED_LINUX)
|
availableTargets.remove(Targets.EMBEDDED_LINUX)
|
||||||
elif platform.system() == 'Darwin':
|
elif platform.system() == 'Darwin':
|
||||||
availableTargets.remove(Targets.DESKTOP_541_GCC)
|
availableTargets.remove(Targets.DESKTOP_5_4_1_GCC)
|
||||||
return availableTargets
|
return availableTargets
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@@ -54,20 +54,20 @@ class Targets:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def qt4Classes():
|
def qt4Classes():
|
||||||
return (Targets.DESKTOP_487_DEFAULT | Targets.EMBEDDED_LINUX)
|
return (Targets.DESKTOP_4_8_7_DEFAULT | Targets.EMBEDDED_LINUX)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getStringForTarget(target):
|
def getStringForTarget(target):
|
||||||
if target == Targets.DESKTOP_487_DEFAULT:
|
if target == Targets.DESKTOP_4_8_7_DEFAULT:
|
||||||
return "Desktop 487 default"
|
return "Desktop 4.8.7 default"
|
||||||
elif target == Targets.EMBEDDED_LINUX:
|
elif target == Targets.EMBEDDED_LINUX:
|
||||||
return "Embedded Linux"
|
return "Embedded Linux"
|
||||||
elif target == Targets.DESKTOP_531_DEFAULT:
|
elif target == Targets.DESKTOP_5_3_1_DEFAULT:
|
||||||
return "Desktop 531 default"
|
return "Desktop 5.3.1 default"
|
||||||
elif target == Targets.DESKTOP_541_GCC:
|
elif target == Targets.DESKTOP_5_4_1_GCC:
|
||||||
return "Desktop 541 GCC"
|
return "Desktop 5.4.1 GCC"
|
||||||
elif target == Targets.DESKTOP_561_DEFAULT:
|
elif target == Targets.DESKTOP_5_6_1_DEFAULT:
|
||||||
return "Desktop 561 default"
|
return "Desktop 5.6.1 default"
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ class Targets:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getDefaultKit():
|
def getDefaultKit():
|
||||||
return Targets.DESKTOP_531_DEFAULT
|
return Targets.DESKTOP_5_3_1_DEFAULT
|
||||||
|
|
||||||
# this class holds some constants for easier usage inside the Projects view
|
# this class holds some constants for easier usage inside the Projects view
|
||||||
class ProjectSettings:
|
class ProjectSettings:
|
||||||
@@ -169,9 +169,9 @@ class Qt5Path:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getPaths(pathSpec):
|
def getPaths(pathSpec):
|
||||||
qt5targets = [Targets.DESKTOP_531_DEFAULT, Targets.DESKTOP_561_DEFAULT]
|
qt5targets = [Targets.DESKTOP_5_3_1_DEFAULT, Targets.DESKTOP_5_6_1_DEFAULT]
|
||||||
if platform.system() != 'Darwin':
|
if platform.system() != 'Darwin':
|
||||||
qt5targets.append(Targets.DESKTOP_541_GCC)
|
qt5targets.append(Targets.DESKTOP_5_4_1_GCC)
|
||||||
if pathSpec == Qt5Path.DOCS:
|
if pathSpec == Qt5Path.DOCS:
|
||||||
return map(lambda target: Qt5Path.docsPath(target), qt5targets)
|
return map(lambda target: Qt5Path.docsPath(target), qt5targets)
|
||||||
elif pathSpec == Qt5Path.EXAMPLES:
|
elif pathSpec == Qt5Path.EXAMPLES:
|
||||||
@@ -185,7 +185,7 @@ class Qt5Path:
|
|||||||
if target not in Targets.ALL_TARGETS:
|
if target not in Targets.ALL_TARGETS:
|
||||||
raise Exception("Unexpected target '%s'" % str(target))
|
raise Exception("Unexpected target '%s'" % str(target))
|
||||||
|
|
||||||
matcher = re.match("^Desktop (5\\d{2}).*$", Targets.getStringForTarget(target))
|
matcher = re.match("^Desktop (5\.\\d{1,2}\.\\d{1,2}).*$", Targets.getStringForTarget(target))
|
||||||
if matcher is None:
|
if matcher is None:
|
||||||
raise Exception("Currently this is supported for Desktop Qt5 only, got target '%s'"
|
raise Exception("Currently this is supported for Desktop Qt5 only, got target '%s'"
|
||||||
% str(Targets.getStringForTarget(target)))
|
% str(Targets.getStringForTarget(target)))
|
||||||
@@ -211,9 +211,18 @@ class Qt5Path:
|
|||||||
return os.path.expanduser("~/Qt5.%d.1" % qt5Minor)
|
return os.path.expanduser("~/Qt5.%d.1" % qt5Minor)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def examplesPath(target):
|
def toVersionTuple(versionString):
|
||||||
|
return tuple(map(__builtin__.int, versionString.split(".")))
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def getQtMinorAndPatchVersion(target):
|
||||||
qtVersionStr = Qt5Path.__preCheckAndExtractQtVersionStr__(target)
|
qtVersionStr = Qt5Path.__preCheckAndExtractQtVersionStr__(target)
|
||||||
qtMinorVersion = __builtin__.int(qtVersionStr[1])
|
versionTuple = Qt5Path.toVersionTuple(qtVersionStr)
|
||||||
|
return versionTuple[1], versionTuple[2]
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def examplesPath(target):
|
||||||
|
qtMinorVersion, qtPatchVersion = Qt5Path.getQtMinorAndPatchVersion(target)
|
||||||
if qtMinorVersion == 2:
|
if qtMinorVersion == 2:
|
||||||
path = "examples"
|
path = "examples"
|
||||||
else:
|
else:
|
||||||
@@ -223,8 +232,7 @@ class Qt5Path:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def docsPath(target):
|
def docsPath(target):
|
||||||
qtVersionStr = Qt5Path.__preCheckAndExtractQtVersionStr__(target)
|
qtMinorVersion, qtPatchVersion = Qt5Path.getQtMinorAndPatchVersion(target)
|
||||||
qtMinorVersion = __builtin__.int(qtVersionStr[1])
|
|
||||||
if qtMinorVersion == 2:
|
if qtMinorVersion == 2:
|
||||||
path = "doc"
|
path = "doc"
|
||||||
else:
|
else:
|
||||||
|
@@ -73,7 +73,7 @@ def openCmakeProject(projectPath, buildDir):
|
|||||||
invokeMenuItem("File", "Open File or Project...")
|
invokeMenuItem("File", "Open File or Project...")
|
||||||
selectFromFileDialog(projectPath)
|
selectFromFileDialog(projectPath)
|
||||||
__chooseTargets__([]) # uncheck all
|
__chooseTargets__([]) # uncheck all
|
||||||
__chooseTargets__([Targets.DESKTOP_487_DEFAULT], additionalFunc=additionalFunction)
|
__chooseTargets__([Targets.DESKTOP_4_8_7_DEFAULT], additionalFunc=additionalFunction)
|
||||||
clickButton(waitForObject(":Qt Creator.Configure Project_QPushButton"))
|
clickButton(waitForObject(":Qt Creator.Configure Project_QPushButton"))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@@ -190,28 +190,23 @@ def __verifyFileCreation__(path, expectedFiles):
|
|||||||
test.verify(os.path.exists(filename), "Checking if '" + filename + "' was created")
|
test.verify(os.path.exists(filename), "Checking if '" + filename + "' was created")
|
||||||
|
|
||||||
def __modifyAvailableTargets__(available, requiredQt, asStrings=False):
|
def __modifyAvailableTargets__(available, requiredQt, asStrings=False):
|
||||||
threeDigits = re.compile("\d{3}")
|
versionFinder = re.compile("^Desktop (\\d{1}\.\\d{1,2}\.\\d{1,2}).*$")
|
||||||
requiredQtVersion = requiredQt.replace(".", "") + "0"
|
|
||||||
tmp = list(available) # we need a deep copy
|
tmp = list(available) # we need a deep copy
|
||||||
|
if Qt5Path.toVersionTuple(requiredQt) > (4,8,7):
|
||||||
|
toBeRemoved = Targets.EMBEDDED_LINUX
|
||||||
|
if asStrings:
|
||||||
|
toBeRemoved = Targets.getStringForTarget(toBeRemoved)
|
||||||
|
if toBeRemoved in available:
|
||||||
|
available.remove(toBeRemoved)
|
||||||
for currentItem in tmp:
|
for currentItem in tmp:
|
||||||
if asStrings:
|
if asStrings:
|
||||||
item = currentItem
|
item = currentItem
|
||||||
else:
|
else:
|
||||||
item = Targets.getStringForTarget(currentItem)
|
item = Targets.getStringForTarget(currentItem)
|
||||||
found = threeDigits.search(item)
|
found = versionFinder.search(item)
|
||||||
if found:
|
if found:
|
||||||
if found.group(0) < requiredQtVersion:
|
if Qt5Path.toVersionTuple(found.group(1)) < Qt5Path.toVersionTuple(requiredQt):
|
||||||
# Quick 1.1 supports 4.7.4 only for running, debugging is unsupported
|
available.remove(currentItem)
|
||||||
# so the least required version is 4.8, but 4.7.4 will be still listed
|
|
||||||
if not (requiredQtVersion == "480" and found.group(0) == "474"):
|
|
||||||
available.remove(currentItem)
|
|
||||||
if requiredQtVersion > "487":
|
|
||||||
toBeRemoved = [Targets.EMBEDDED_LINUX]
|
|
||||||
if asStrings:
|
|
||||||
toBeRemoved = Targets.getTargetsAsStrings(toBeRemoved)
|
|
||||||
for t in toBeRemoved:
|
|
||||||
if t in available:
|
|
||||||
available.remove(t)
|
|
||||||
|
|
||||||
# Creates a Qt GUI project
|
# Creates a Qt GUI project
|
||||||
# param path specifies where to create the project
|
# param path specifies where to create the project
|
||||||
@@ -320,7 +315,7 @@ def createNewQtQuickUI(workingDir, qtVersion = "5.6"):
|
|||||||
|
|
||||||
return projectName
|
return projectName
|
||||||
|
|
||||||
def createNewQmlExtension(workingDir, targets=[Targets.DESKTOP_531_DEFAULT]):
|
def createNewQmlExtension(workingDir, targets=[Targets.DESKTOP_5_3_1_DEFAULT]):
|
||||||
available = __createProjectOrFileSelectType__(" Library", "Qt Quick 2 Extension Plugin")
|
available = __createProjectOrFileSelectType__(" Library", "Qt Quick 2 Extension Plugin")
|
||||||
if workingDir == None:
|
if workingDir == None:
|
||||||
workingDir = tempDir()
|
workingDir = tempDir()
|
||||||
@@ -349,7 +344,7 @@ def createEmptyQtProject(workingDir=None, projectName=None, targets=Targets.desk
|
|||||||
__createProjectHandleLastPage__()
|
__createProjectHandleLastPage__()
|
||||||
return projectName, checkedTargets
|
return projectName, checkedTargets
|
||||||
|
|
||||||
def createNewNonQtProject(workingDir=None, projectName=None, target=[Targets.DESKTOP_487_DEFAULT],
|
def createNewNonQtProject(workingDir=None, projectName=None, target=[Targets.DESKTOP_4_8_7_DEFAULT],
|
||||||
plainC=False, cmake=False, qbs=False):
|
plainC=False, cmake=False, qbs=False):
|
||||||
if plainC:
|
if plainC:
|
||||||
template = "Plain C Application"
|
template = "Plain C Application"
|
||||||
@@ -378,7 +373,7 @@ def createNewNonQtProject(workingDir=None, projectName=None, target=[Targets.DES
|
|||||||
return projectName
|
return projectName
|
||||||
|
|
||||||
def createNewCPPLib(projectDir = None, projectName = None, className = None, fromWelcome = False,
|
def createNewCPPLib(projectDir = None, projectName = None, className = None, fromWelcome = False,
|
||||||
target = [Targets.DESKTOP_487_DEFAULT], isStatic = False, modules = ["QtCore"]):
|
target = [Targets.DESKTOP_4_8_7_DEFAULT], isStatic = False, modules = ["QtCore"]):
|
||||||
available = __createProjectOrFileSelectType__(" Library", "C++ Library", fromWelcome, True)
|
available = __createProjectOrFileSelectType__(" Library", "C++ Library", fromWelcome, True)
|
||||||
if isStatic:
|
if isStatic:
|
||||||
libType = LibType.STATIC
|
libType = LibType.STATIC
|
||||||
@@ -396,7 +391,7 @@ def createNewCPPLib(projectDir = None, projectName = None, className = None, fro
|
|||||||
return checkedTargets, projectName, className
|
return checkedTargets, projectName, className
|
||||||
|
|
||||||
def createNewQtPlugin(projectDir=None, projectName=None, className=None, fromWelcome=False,
|
def createNewQtPlugin(projectDir=None, projectName=None, className=None, fromWelcome=False,
|
||||||
target=[Targets.DESKTOP_487_DEFAULT], baseClass="QGenericPlugin"):
|
target=[Targets.DESKTOP_4_8_7_DEFAULT], baseClass="QGenericPlugin"):
|
||||||
available = __createProjectOrFileSelectType__(" Library", "C++ Library", fromWelcome, True)
|
available = __createProjectOrFileSelectType__(" Library", "C++ Library", fromWelcome, True)
|
||||||
if projectDir == None:
|
if projectDir == None:
|
||||||
projectDir = tempDir()
|
projectDir = tempDir()
|
||||||
@@ -414,7 +409,7 @@ def createNewQtPlugin(projectDir=None, projectName=None, className=None, fromWel
|
|||||||
# parameter additionalFunc function to be executed inside the detailed view of each chosen kit
|
# parameter additionalFunc function to be executed inside the detailed view of each chosen kit
|
||||||
# if present, 'Details' button will be clicked, function will be executed,
|
# if present, 'Details' button will be clicked, function will be executed,
|
||||||
# 'Details' button will be clicked again
|
# 'Details' button will be clicked again
|
||||||
def __chooseTargets__(targets=[Targets.DESKTOP_487_DEFAULT], availableTargets=None, additionalFunc=None):
|
def __chooseTargets__(targets=[Targets.DESKTOP_4_8_7_DEFAULT], availableTargets=None, additionalFunc=None):
|
||||||
if availableTargets != None:
|
if availableTargets != None:
|
||||||
available = availableTargets
|
available = availableTargets
|
||||||
else:
|
else:
|
||||||
@@ -645,7 +640,7 @@ def __getSupportedPlatforms__(text, templateName, getAsStrings=False):
|
|||||||
else:
|
else:
|
||||||
version = None
|
version = None
|
||||||
if 'only available with Qt 5.6' in text:
|
if 'only available with Qt 5.6' in text:
|
||||||
result = [Targets.DESKTOP_561_DEFAULT]
|
result = [Targets.DESKTOP_5_6_1_DEFAULT]
|
||||||
elif 'available with Qt 5.7 and later' in text:
|
elif 'available with Qt 5.7 and later' in text:
|
||||||
result = [] # FIXME we have currently no Qt5.7+ available in predefined settings
|
result = [] # FIXME we have currently no Qt5.7+ available in predefined settings
|
||||||
elif 'Supported Platforms' in text:
|
elif 'Supported Platforms' in text:
|
||||||
@@ -653,12 +648,12 @@ def __getSupportedPlatforms__(text, templateName, getAsStrings=False):
|
|||||||
result = []
|
result = []
|
||||||
if 'Desktop' in supports:
|
if 'Desktop' in supports:
|
||||||
if version == None or version < "5.0":
|
if version == None or version < "5.0":
|
||||||
result.append(Targets.DESKTOP_487_DEFAULT)
|
result.append(Targets.DESKTOP_4_8_7_DEFAULT)
|
||||||
if platform.system() in ("Linux", "Darwin"):
|
if platform.system() in ("Linux", "Darwin"):
|
||||||
result.append(Targets.EMBEDDED_LINUX)
|
result.append(Targets.EMBEDDED_LINUX)
|
||||||
result.extend([Targets.DESKTOP_531_DEFAULT, Targets.DESKTOP_561_DEFAULT])
|
result.extend([Targets.DESKTOP_5_3_1_DEFAULT, Targets.DESKTOP_5_6_1_DEFAULT])
|
||||||
if platform.system() != 'Darwin':
|
if platform.system() != 'Darwin':
|
||||||
result.append(Targets.DESKTOP_541_GCC)
|
result.append(Targets.DESKTOP_5_4_1_GCC)
|
||||||
elif 'Platform independent' in text:
|
elif 'Platform independent' in text:
|
||||||
result = Targets.desktopTargetClasses()
|
result = Targets.desktopTargetClasses()
|
||||||
else:
|
else:
|
||||||
|
@@ -85,7 +85,7 @@ def main():
|
|||||||
target=targets)
|
target=targets)
|
||||||
virtualFunctionsAdded = False
|
virtualFunctionsAdded = False
|
||||||
for kit, config in iterateBuildConfigs(len(checkedTargets), "Debug"):
|
for kit, config in iterateBuildConfigs(len(checkedTargets), "Debug"):
|
||||||
is487Kit = "487" in Targets.getStringForTarget(checkedTargets[kit])
|
is487Kit = checkedTargets[kit] in (Targets.DESKTOP_4_8_7_DEFAULT, Targets.EMBEDDED_LINUX)
|
||||||
verifyBuildConfig(len(checkedTargets), kit, config, True, True)
|
verifyBuildConfig(len(checkedTargets), kit, config, True, True)
|
||||||
if virtualFunctionsAdded and platform.system() in ('Microsoft', 'Windows') and is487Kit:
|
if virtualFunctionsAdded and platform.system() in ('Microsoft', 'Windows') and is487Kit:
|
||||||
test.warning("Skipping building of Qt4.8 targets because of QTCREATORBUG-12251.")
|
test.warning("Skipping building of Qt4.8 targets because of QTCREATORBUG-12251.")
|
||||||
|
@@ -28,7 +28,7 @@ source("../../shared/qtcreator.py")
|
|||||||
# entry of test
|
# entry of test
|
||||||
def main():
|
def main():
|
||||||
# prepare example project
|
# prepare example project
|
||||||
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_561_DEFAULT),
|
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_5_6_1_DEFAULT),
|
||||||
"quick", "animation")
|
"quick", "animation")
|
||||||
proFile = "animation.pro"
|
proFile = "animation.pro"
|
||||||
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
||||||
@@ -41,7 +41,7 @@ def main():
|
|||||||
return
|
return
|
||||||
# open example project, supports only Qt 5
|
# open example project, supports only Qt 5
|
||||||
targets = Targets.desktopTargetClasses()
|
targets = Targets.desktopTargetClasses()
|
||||||
targets.remove(Targets.DESKTOP_487_DEFAULT)
|
targets.remove(Targets.DESKTOP_4_8_7_DEFAULT)
|
||||||
checkedTargets = openQmakeProject(examplePath, targets)
|
checkedTargets = openQmakeProject(examplePath, targets)
|
||||||
# build and wait until finished - on all build configurations
|
# build and wait until finished - on all build configurations
|
||||||
availableConfigs = iterateBuildConfigs(len(checkedTargets))
|
availableConfigs = iterateBuildConfigs(len(checkedTargets))
|
||||||
|
@@ -29,7 +29,7 @@ source("../../shared/qtcreator.py")
|
|||||||
# entry of test
|
# entry of test
|
||||||
def main():
|
def main():
|
||||||
# prepare example project
|
# prepare example project
|
||||||
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_561_DEFAULT),
|
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_5_6_1_DEFAULT),
|
||||||
"quick", "animation")
|
"quick", "animation")
|
||||||
proFile = "animation.pro"
|
proFile = "animation.pro"
|
||||||
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
||||||
|
@@ -165,7 +165,7 @@ def main():
|
|||||||
with TestSection(getCodeModelString(useClang)):
|
with TestSection(getCodeModelString(useClang)):
|
||||||
if not startCreator(useClang):
|
if not startCreator(useClang):
|
||||||
continue
|
continue
|
||||||
openQmakeProject(examplePath, [Targets.DESKTOP_531_DEFAULT])
|
openQmakeProject(examplePath, [Targets.DESKTOP_5_3_1_DEFAULT])
|
||||||
checkCodeModelSettings(useClang)
|
checkCodeModelSettings(useClang)
|
||||||
if not openDocument("cplusplus-tools.Sources.main\\.cpp"):
|
if not openDocument("cplusplus-tools.Sources.main\\.cpp"):
|
||||||
earlyExit("Failed to open main.cpp.")
|
earlyExit("Failed to open main.cpp.")
|
||||||
|
@@ -67,7 +67,7 @@ def checkUsages(resultsView, expectedResults, directory):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
# prepare example project
|
# prepare example project
|
||||||
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_561_DEFAULT),
|
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_5_6_1_DEFAULT),
|
||||||
"quick", "animation")
|
"quick", "animation")
|
||||||
proFile = "animation.pro"
|
proFile = "animation.pro"
|
||||||
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
||||||
@@ -80,7 +80,7 @@ def main():
|
|||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
# open example project
|
# open example project
|
||||||
openQmakeProject(examplePath, [Targets.DESKTOP_531_DEFAULT])
|
openQmakeProject(examplePath, [Targets.DESKTOP_5_3_1_DEFAULT])
|
||||||
# open qml file
|
# open qml file
|
||||||
openDocument("animation.Resources.animation\\.qrc./animation.basics.color-animation\\.qml")
|
openDocument("animation.Resources.animation\\.qrc./animation.basics.color-animation\\.qml")
|
||||||
# get editor
|
# get editor
|
||||||
|
@@ -65,7 +65,7 @@ def checkTypeAndProperties(typePropertiesDetails):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
# prepare example project
|
# prepare example project
|
||||||
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_561_DEFAULT),
|
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_5_6_1_DEFAULT),
|
||||||
"quick", "animation")
|
"quick", "animation")
|
||||||
if not neededFilePresent(sourceExample):
|
if not neededFilePresent(sourceExample):
|
||||||
return
|
return
|
||||||
|
@@ -71,10 +71,10 @@ def main():
|
|||||||
appOutput = str(waitForObject(":Qt Creator_Core::OutputWindow").plainText)
|
appOutput = str(waitForObject(":Qt Creator_Core::OutputWindow").plainText)
|
||||||
verifyOutput(appOutput, outputStdOut, "std::cout", "Application Output")
|
verifyOutput(appOutput, outputStdOut, "std::cout", "Application Output")
|
||||||
verifyOutput(appOutput, outputStdErr, "std::cerr", "Application Output")
|
verifyOutput(appOutput, outputStdErr, "std::cerr", "Application Output")
|
||||||
if (checkedTargets[kit] == Targets.DESKTOP_541_GCC
|
if (checkedTargets[kit] == Targets.DESKTOP_5_4_1_GCC
|
||||||
and platform.system() in ('Windows', 'Microsoft')):
|
and platform.system() in ('Windows', 'Microsoft')):
|
||||||
test.log("Skipping qDebug() from %s (unstable, QTCREATORBUG-15067)"
|
test.log("Skipping qDebug() from %s (unstable, QTCREATORBUG-15067)"
|
||||||
% Targets.getStringForTarget(Targets.DESKTOP_541_GCC))
|
% Targets.getStringForTarget(Targets.DESKTOP_5_4_1_GCC))
|
||||||
else:
|
else:
|
||||||
verifyOutput(appOutput, outputQDebug,
|
verifyOutput(appOutput, outputQDebug,
|
||||||
"qDebug()", "Application Output")
|
"qDebug()", "Application Output")
|
||||||
|
@@ -61,7 +61,8 @@ def main():
|
|||||||
for name,isC in {"C":True, "CPP":False}.items():
|
for name,isC in {"C":True, "CPP":False}.items():
|
||||||
for singleTarget in targets:
|
for singleTarget in targets:
|
||||||
workingDir = tempDir()
|
workingDir = tempDir()
|
||||||
qtVersion = re.search("\d{3}", Targets.getStringForTarget(singleTarget)).group()
|
qtVersion = re.search("\\d{1}\.\\d{1,2}\.\\d{1,2}", Targets.getStringForTarget(singleTarget)).group()
|
||||||
|
qtVersion = qtVersion.replace(".", "")
|
||||||
projectName = createNewNonQtProject(workingDir, "Sample%s%s" % (name, qtVersion),
|
projectName = createNewNonQtProject(workingDir, "Sample%s%s" % (name, qtVersion),
|
||||||
[singleTarget], isC)
|
[singleTarget], isC)
|
||||||
if projectName == None:
|
if projectName == None:
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
source("../../shared/qtcreator.py")
|
source("../../shared/qtcreator.py")
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
target = Targets.DESKTOP_531_DEFAULT
|
target = Targets.DESKTOP_5_3_1_DEFAULT
|
||||||
sourceExample = os.path.join(Qt5Path.examplesPath(target), "declarative/keyinteraction/focus")
|
sourceExample = os.path.join(Qt5Path.examplesPath(target), "declarative/keyinteraction/focus")
|
||||||
proFile = "focus.pro"
|
proFile = "focus.pro"
|
||||||
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
||||||
|
@@ -42,7 +42,7 @@ def main():
|
|||||||
startApplication("qtcreator" + SettingsPath)
|
startApplication("qtcreator" + SettingsPath)
|
||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
checkedTargets = openQmakeProject(SpeedCrunchPath, [Targets.DESKTOP_487_DEFAULT])
|
checkedTargets = openQmakeProject(SpeedCrunchPath, [Targets.DESKTOP_4_8_7_DEFAULT])
|
||||||
progressBarWait(30000)
|
progressBarWait(30000)
|
||||||
|
|
||||||
fancyToolButton = waitForObject(":*Qt Creator_Core::Internal::FancyToolButton")
|
fancyToolButton = waitForObject(":*Qt Creator_Core::Internal::FancyToolButton")
|
||||||
|
@@ -37,8 +37,8 @@ def main():
|
|||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
openQbsProject(pathCreator)
|
openQbsProject(pathCreator)
|
||||||
if not addAndActivateKit(Targets.DESKTOP_561_DEFAULT):
|
if not addAndActivateKit(Targets.DESKTOP_5_6_1_DEFAULT):
|
||||||
test.fatal("Failed to activate '%s'" % Targets.getStringForTarget(Targets.DESKTOP_541_GCC))
|
test.fatal("Failed to activate '%s'" % Targets.getStringForTarget(Targets.DESKTOP_5_4_1_GCC))
|
||||||
invokeMenuItem("File", "Exit")
|
invokeMenuItem("File", "Exit")
|
||||||
return
|
return
|
||||||
test.log("Start parsing project")
|
test.log("Start parsing project")
|
||||||
|
@@ -36,12 +36,12 @@ def main():
|
|||||||
return
|
return
|
||||||
|
|
||||||
runButton = findObject(':*Qt Creator.Run_Core::Internal::FancyToolButton')
|
runButton = findObject(':*Qt Creator.Run_Core::Internal::FancyToolButton')
|
||||||
openQmakeProject(pathSpeedcrunch, [Targets.DESKTOP_487_DEFAULT])
|
openQmakeProject(pathSpeedcrunch, [Targets.DESKTOP_4_8_7_DEFAULT])
|
||||||
# Wait for parsing to complete
|
# Wait for parsing to complete
|
||||||
waitFor("runButton.enabled", 30000)
|
waitFor("runButton.enabled", 30000)
|
||||||
# Starting before opening, because this is where Creator froze (QTCREATORBUG-10733)
|
# Starting before opening, because this is where Creator froze (QTCREATORBUG-10733)
|
||||||
startopening = datetime.utcnow()
|
startopening = datetime.utcnow()
|
||||||
openQmakeProject(pathCreator, [Targets.DESKTOP_561_DEFAULT])
|
openQmakeProject(pathCreator, [Targets.DESKTOP_5_6_1_DEFAULT])
|
||||||
# Wait for parsing to complete
|
# Wait for parsing to complete
|
||||||
startreading = datetime.utcnow()
|
startreading = datetime.utcnow()
|
||||||
waitFor("runButton.enabled", 300000)
|
waitFor("runButton.enabled", 300000)
|
||||||
|
@@ -46,7 +46,7 @@ def __removeKit__(kit, kitName):
|
|||||||
if kitName == Targets.getStringForTarget(Targets.getDefaultKit()):
|
if kitName == Targets.getStringForTarget(Targets.getDefaultKit()):
|
||||||
# The following kits will be the default kit at that time
|
# The following kits will be the default kit at that time
|
||||||
kitNameTemplate += " (default)"
|
kitNameTemplate += " (default)"
|
||||||
item = kitNameTemplate % kitName
|
item = kitNameTemplate % kitName.replace(".", "\\.")
|
||||||
waitForObjectItem(":BuildAndRun_QTreeView", item)
|
waitForObjectItem(":BuildAndRun_QTreeView", item)
|
||||||
clickItem(":BuildAndRun_QTreeView", item, 5, 5, 0, Qt.LeftButton)
|
clickItem(":BuildAndRun_QTreeView", item, 5, 5, 0, Qt.LeftButton)
|
||||||
clickButton(waitForObject(":Remove_QPushButton"))
|
clickButton(waitForObject(":Remove_QPushButton"))
|
||||||
|
@@ -28,7 +28,7 @@ source("../../shared/qtcreator.py")
|
|||||||
def main():
|
def main():
|
||||||
# prepare example project
|
# prepare example project
|
||||||
projectName = "adding"
|
projectName = "adding"
|
||||||
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_561_DEFAULT),
|
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_5_6_1_DEFAULT),
|
||||||
"qml", "referenceexamples", "adding")
|
"qml", "referenceexamples", "adding")
|
||||||
proFile = projectName + ".pro"
|
proFile = projectName + ".pro"
|
||||||
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
||||||
|
@@ -39,7 +39,7 @@ def main():
|
|||||||
"Verifying window title contains created session name.")
|
"Verifying window title contains created session name.")
|
||||||
checkWelcomePage(sessionName, True)
|
checkWelcomePage(sessionName, True)
|
||||||
for project in projects:
|
for project in projects:
|
||||||
openQmakeProject(project, [Targets.DESKTOP_531_DEFAULT])
|
openQmakeProject(project, [Targets.DESKTOP_5_3_1_DEFAULT])
|
||||||
progressBarWait(20000)
|
progressBarWait(20000)
|
||||||
checkNavigator(52, "Verifying whether all projects have been opened.")
|
checkNavigator(52, "Verifying whether all projects have been opened.")
|
||||||
openDocument("animation.Resources.animation\\.qrc./animation.basics.animators\\.qml")
|
openDocument("animation.Resources.animation\\.qrc./animation.basics.animators\\.qml")
|
||||||
@@ -66,9 +66,9 @@ def main():
|
|||||||
invokeMenuItem("File", "Exit")
|
invokeMenuItem("File", "Exit")
|
||||||
|
|
||||||
def prepareTestExamples():
|
def prepareTestExamples():
|
||||||
examples = [os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_561_DEFAULT),
|
examples = [os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_5_6_1_DEFAULT),
|
||||||
"quick", "animation", "animation.pro"),
|
"quick", "animation", "animation.pro"),
|
||||||
os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_561_DEFAULT),
|
os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_5_6_1_DEFAULT),
|
||||||
"quick", "keyinteraction", "keyinteraction.pro")
|
"quick", "keyinteraction", "keyinteraction.pro")
|
||||||
]
|
]
|
||||||
projects = []
|
projects = []
|
||||||
|
@@ -30,7 +30,7 @@ outline = ":Qt Creator_QmlJSEditor::Internal::QmlJSOutlineTreeView"
|
|||||||
treebase = "keyinteraction.Resources.keyinteraction\\.qrc./keyinteraction.focus."
|
treebase = "keyinteraction.Resources.keyinteraction\\.qrc./keyinteraction.focus."
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_561_DEFAULT),
|
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_5_6_1_DEFAULT),
|
||||||
"quick", "keyinteraction")
|
"quick", "keyinteraction")
|
||||||
proFile = "keyinteraction.pro"
|
proFile = "keyinteraction.pro"
|
||||||
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
||||||
@@ -39,7 +39,7 @@ def main():
|
|||||||
startApplication("qtcreator" + SettingsPath)
|
startApplication("qtcreator" + SettingsPath)
|
||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
openQmakeProject(os.path.join(templateDir, proFile), [Targets.DESKTOP_531_DEFAULT])
|
openQmakeProject(os.path.join(templateDir, proFile), [Targets.DESKTOP_5_3_1_DEFAULT])
|
||||||
qmlFiles = [treebase + "focus\\.qml", treebase + "Core.ListMenu\\.qml"]
|
qmlFiles = [treebase + "focus\\.qml", treebase + "Core.ListMenu\\.qml"]
|
||||||
checkOutlineFor(qmlFiles)
|
checkOutlineFor(qmlFiles)
|
||||||
testModify()
|
testModify()
|
||||||
|
@@ -33,7 +33,7 @@ def main():
|
|||||||
available = [("5.6", False), ("5.6", True)]
|
available = [("5.6", False), ("5.6", True)]
|
||||||
|
|
||||||
for qtVersion, controls in available:
|
for qtVersion, controls in available:
|
||||||
targ = [Targets.DESKTOP_561_DEFAULT]
|
targ = [Targets.DESKTOP_5_6_1_DEFAULT]
|
||||||
quick = "2.6"
|
quick = "2.6"
|
||||||
# using a temporary directory won't mess up a potentially existing
|
# using a temporary directory won't mess up a potentially existing
|
||||||
workingDir = tempDir()
|
workingDir = tempDir()
|
||||||
|
@@ -35,8 +35,8 @@ def main():
|
|||||||
# using a temporary directory won't mess up a potentially existing
|
# using a temporary directory won't mess up a potentially existing
|
||||||
workingDir = tempDir()
|
workingDir = tempDir()
|
||||||
projectName = createNewQtQuickUI(workingDir, qtVersion)
|
projectName = createNewQtQuickUI(workingDir, qtVersion)
|
||||||
kit = Targets.getStringForTarget(Targets.DESKTOP_561_DEFAULT)
|
kit = Targets.getStringForTarget(Targets.DESKTOP_5_6_1_DEFAULT)
|
||||||
if addAndActivateKit(Targets.DESKTOP_561_DEFAULT):
|
if addAndActivateKit(Targets.DESKTOP_5_6_1_DEFAULT):
|
||||||
quick = "2.6"
|
quick = "2.6"
|
||||||
else:
|
else:
|
||||||
test.fatal("Failed to activate kit %s" % kit)
|
test.fatal("Failed to activate kit %s" % kit)
|
||||||
|
@@ -29,7 +29,7 @@ def main():
|
|||||||
startApplication("qtcreator" + SettingsPath)
|
startApplication("qtcreator" + SettingsPath)
|
||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
for target in [Targets.DESKTOP_561_DEFAULT, Targets.DESKTOP_531_DEFAULT]:
|
for target in [Targets.DESKTOP_5_6_1_DEFAULT, Targets.DESKTOP_5_3_1_DEFAULT]:
|
||||||
# using a temporary directory won't mess up a potentially existing
|
# using a temporary directory won't mess up a potentially existing
|
||||||
createNewQmlExtension(tempDir(), [target])
|
createNewQmlExtension(tempDir(), [target])
|
||||||
# wait for parsing to complete
|
# wait for parsing to complete
|
||||||
|
Reference in New Issue
Block a user