forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user