From 122f896548e31c2a73d8df987b41595d4d0147bc Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Wed, 17 Feb 2016 13:13:01 +0100 Subject: [PATCH] Squish: Update addHelpDocumentation() Change-Id: I8b26f1e5efbc51058306ea7183c0b37bcbc49179 Reviewed-by: Christian Stenger --- tests/system/shared/utils.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index ec7781f6a09..9c757d99adb 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -282,12 +282,11 @@ def addHelpDocumentation(which): waitForObject("{container=':Options.qt_tabwidget_tabbar_QTabBar' type='TabItem' text='Documentation'}") clickOnTab(":Options.qt_tabwidget_tabbar_QTabBar", "Documentation") # get rid of all docs already registered - listWidget = waitForObject("{type='QListWidget' name='docsListWidget' visible='1'}") - if listWidget.count > 0: - rect = listWidget.visualItemRect(listWidget.item(0)) - mouseClick(listWidget, rect.x+5, rect.y+5, 0, Qt.LeftButton) + listWidget = waitForObject("{type='QListView' name='docsListView' visible='1'}") + if listWidget.model().rowCount() > 0: + mouseClick(listWidget) type(listWidget, "") - mouseClick(waitForObject("{type='QPushButton' name='removeButton' visible='1'}"), 5, 5, 0, Qt.LeftButton) + clickButton(waitForObject("{type='QPushButton' name='removeButton' visible='1'}")) for qch in which: clickButton(waitForObject("{type='QPushButton' name='addButton' visible='1' text='Add...'}")) selectFromFileDialog(qch)