Squish: Update openCmakeProject

Change-Id: I17f1a271eafbcff24987fbd7e31dc6cc8c789b84
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2019-06-24 14:14:24 +02:00
parent c54ef80a4e
commit 38685de894

View File

@@ -53,17 +53,17 @@ def openQmakeProject(projectPath, targets=Targets.desktopTargetClasses(), fromWe
def openCmakeProject(projectPath, buildDir): def openCmakeProject(projectPath, buildDir):
def additionalFunction(): def additionalFunction():
pChooser = waitForObject("{leftWidget={text='Default' type='QCheckBox' unnamed='1' " pChooser = waitForObject("{leftWidget={text='Debug' type='QCheckBox' unnamed='1' "
"visible='1'} type='Utils::PathChooser' unnamed='1' visible='1'}") "visible='1'} type='Utils::PathChooser' unnamed='1' visible='1'}")
lineEdit = getChildByClass(pChooser, "Utils::FancyLineEdit") lineEdit = getChildByClass(pChooser, "Utils::FancyLineEdit")
replaceEditorContent(lineEdit, buildDir) replaceEditorContent(lineEdit, buildDir)
# disable all build configurations except "Default" # disable all build configurations except "Debug"
configs = ['Debug', 'Release', 'Release with Debug Information', 'Minimum Size Release'] configs = ['Release', 'Release with Debug Information', 'Minimum Size Release']
for checkbox in configs: for checkbox in configs:
ensureChecked(waitForObject("{text='%s' type='QCheckBox' unnamed='1' visible='1' " ensureChecked(waitForObject("{text='%s' type='QCheckBox' unnamed='1' visible='1' "
"window=':Qt Creator_Core::Internal::MainWindow'}" "window=':Qt Creator_Core::Internal::MainWindow'}"
% checkbox), False) % checkbox), False)
ensureChecked(waitForObject("{text='Default' type='QCheckBox' unnamed='1' visible='1' " ensureChecked(waitForObject("{text='Debug' type='QCheckBox' unnamed='1' visible='1' "
"window=':Qt Creator_Core::Internal::MainWindow'}"), True) "window=':Qt Creator_Core::Internal::MainWindow'}"), True)
invokeMenuItem("File", "Open File or Project...") invokeMenuItem("File", "Open File or Project...")