Commit f706d183 authored by Christian Stenger's avatar Christian Stenger

Squish: Fix problem with Mac menubar

Change-Id: Id03f060acb1ba343cfd1ff9199f3f1de46abd58b
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent 5aa0f068
......@@ -196,6 +196,11 @@ def cleanUpUserFiles(pathsToProFiles=None):
return doneWithoutErrors
def invokeMenuItem(menu, item, subItem = None):
if platform.system() == "Darwin":
try:
waitForObject(":Qt Creator.QtCreator.MenuBar_QMenuBar", 2000)
except:
nativeMouseClick(waitForObject(":Qt Creator_Core::Internal::MainWindow", 1000), 20, 20, 0, Qt.LeftButton)
menuObject = waitForObjectItem(":Qt Creator.QtCreator.MenuBar_QMenuBar", menu)
waitFor("menuObject.visible", 1000)
activateItem(menuObject)
......
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