forked from qt-creator/qt-creator
Squish: Update openCmakeProject
Change-Id: I17f1a271eafbcff24987fbd7e31dc6cc8c789b84 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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...")
|
||||||
|
Reference in New Issue
Block a user