Squish: Fix for Qt 5.11

The items in the treeView look slightly different than
with Qt 5.10 and thus seem to lose the mouseclicks.

Change-Id: Ibee1abdbc9e9bfe622b45f76ed5e612e81fd1770
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2018-06-29 16:43:47 +02:00
parent d2a7adba56
commit 9e6fe45ad9
+1 -1
View File
@@ -333,7 +333,7 @@ def validateSearchResult(expectedCount):
resultTreeView.scrollTo(chIndex)
text = str(chIndex.data()).rstrip('\r')
rect = resultTreeView.visualRect(chIndex)
doubleClick(resultTreeView, rect.x+5, rect.y+5, 0, Qt.LeftButton)
doubleClick(resultTreeView, rect.x+50, rect.y+5, 0, Qt.LeftButton)
editor = getEditorForFileSuffix(itemText)
if not waitFor("lineUnderCursor(editor) == text", 2000):
test.warning("Jumping to search result '%s' is pretty slow." % text)