Commit eeb7ecbb authored by Christian Stenger's avatar Christian Stenger Committed by Robert Löhning

Squish: Fix for UI change

Additionally changed waiting for TargetSelector
from 20s to only 5s.

Change-Id: I2e342faa6f87b86335bb01f28832ad9c01a27ffb
Reviewed-by: default avatarRobert Löhning <robert.loehning@nokia.com>
parent b9a4f941
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment