forked from qt-creator/qt-creator
Squish: Improved checks before working on projects
Change-Id: Ieb230be55b94d00be272cb84796ce8fd22f4f8f7 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -5,7 +5,8 @@ import re
|
||||
def main():
|
||||
global templateDir, textChanged
|
||||
sourceExample = os.path.abspath(sdkPath + "/Examples/4.7/declarative/text/textselection")
|
||||
if not neededFilePresent(sourceExample):
|
||||
qmlFile = os.path.join("qml", "textselection.qml")
|
||||
if not neededFilePresent(os.path.join(sourceExample, qmlFile)):
|
||||
return
|
||||
templateDir = prepareTemplate(sourceExample)
|
||||
startApplication("qtcreator" + SettingsPath)
|
||||
@@ -65,7 +66,7 @@ def main():
|
||||
try:
|
||||
waitForObject("{text='Select Existing QML file' type='QLabel' visible='1'}", 1000)
|
||||
baseLineEd = waitForObject("{type='Utils::BaseValidatingLineEdit' unnamed='1' visible='1'}", 20000)
|
||||
type(baseLineEd, templateDir + "/qml/textselection.qml")
|
||||
type(baseLineEd, os.path.join(templateDir, qmlFile))
|
||||
clickButton(waitForObject(":Next_QPushButton"))
|
||||
except LookupError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user