Squish: Added helper functions for views and models

Change-Id: Ic5dc4a5fe11ec5f693ef9f5ddf3abbefd689fd99
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
Robert Loehning
2012-10-25 12:59:03 +02:00
parent e94642e8f0
commit 95af1cd4f8
11 changed files with 41 additions and 46 deletions
+1 -2
View File
@@ -89,8 +89,7 @@ def removeOldBreakpoints():
test.log("No breakpoints found...")
else:
test.log("Found %d breakpoints - removing them" % model.rowCount())
for row in range(model.rowCount()):
currentIndex = model.index(row,0)
for currentIndex in dumpIndices(model):
rect = breakPointTreeView.visualRect(currentIndex)
mouseClick(breakPointTreeView, rect.x+5, rect.y+5, 0, Qt.LeftButton)
type(breakPointTreeView, "<Delete>")