forked from qt-creator/qt-creator
Squish: Fix for UI change
Additionally changed waiting for TargetSelector from 20s to only 5s. Change-Id: I2e342faa6f87b86335bb01f28832ad9c01a27ffb Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
This commit is contained in:
committed by
Robert Löhning
parent
b9a4f9413f
commit
eeb7ecbb40
@@ -78,8 +78,9 @@ def modifyRunSettingsForHookIntoQtQuickUI(projectName, port):
|
||||
"window=':Qt Creator_Core::Internal::MainWindow' occurrence='2'}")
|
||||
clickButton(addRunConfig)
|
||||
activateItem(waitForObject("{type='QMenu' visible='1' unnamed='1'}"), "Custom Executable")
|
||||
exePathChooser = waitForObject("{buddy={window=':Qt Creator_Core::Internal::MainWindow' text='Executable:' "
|
||||
"type='QLabel'} type='Utils::PathChooser' unnamed='1' visible='1'}")
|
||||
exePathChooser = waitForObject("{buddy={window=':Qt Creator_Core::Internal::MainWindow' text='Command:' "
|
||||
"type='QLabel' unnamed='1' visible='1'} type='Utils::PathChooser' "
|
||||
"unnamed='1' visible='1'}")
|
||||
exeLineEd = getChildByClass(exePathChooser, "Utils::BaseValidatingLineEdit")
|
||||
argLineEd = waitForObject("{buddy={window=':Qt Creator_Core::Internal::MainWindow' type='QLabel' "
|
||||
"text='Arguments:' visible='1'} type='QLineEdit' unnamed='1' visible='1'}")
|
||||
|
||||
@@ -76,7 +76,7 @@ def prepareBuildSettings(targetCount, currentTarget, setReleaseBuild=True, disab
|
||||
def switchToBuildOrRunSettingsFor(targetCount, currentTarget, projectSettings, isQtQuickUI=False):
|
||||
try:
|
||||
targetSel = waitForObject("{type='ProjectExplorer::Internal::TargetSelector' unnamed='1' "
|
||||
"visible='1' window=':Qt Creator_Core::Internal::MainWindow'}")
|
||||
"visible='1' window=':Qt Creator_Core::Internal::MainWindow'}", 5000)
|
||||
except LookupError:
|
||||
# if it's a QtQuick UI - this depends on the creator version - so better not fatal
|
||||
if isQtQuickUI:
|
||||
|
||||
Reference in New Issue
Block a user