diff options
author | Robert Loehning <robert.loehning@digia.com> | 2012-10-26 20:29:37 +0200 |
---|---|---|
committer | Robert Loehning <robert.loehning@digia.com> | 2012-10-29 18:28:01 +0100 |
commit | 20d4efb0b1d9d17ca5c6e4487214f9b2c0ef43b5 (patch) | |
tree | 9f105b21ff1bd5edc99b8cf44660d971c047cc12 | |
parent | 0ae5695649a2dbbcea18b7f491746daaff834568 (diff) |
Squish: Removed unused functions
Change-Id: Idf66788a8f693d836fafe26f3355a96395066c37
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
-rw-r--r-- | tests/system/shared/hook_utils.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/system/shared/hook_utils.py b/tests/system/shared/hook_utils.py index 9db0b84d26c..96509e23ce5 100644 --- a/tests/system/shared/hook_utils.py +++ b/tests/system/shared/hook_utils.py @@ -161,38 +161,6 @@ def __getMkspecFromQmake__(qmakeCall): "QMAKE_MKSPECS returned: '%s'" % QmakeConfPath) return None -def getQMakeFromQtVersion(qtVersion): - invokeMenuItem("Tools", "Options...") - buildAndRun = waitForObject("{type='QModelIndex' text='Build & Run' " - "container={type='QListView' unnamed='1' visible='1' " - "window=':Options_Core::Internal::SettingsDialog'}}") - mouseClick(buildAndRun, 5, 5, 0, Qt.LeftButton) - qtVersionTab = waitForObject("{container=':Options.qt_tabwidget_tabbar_QTabBar' text='Qt Versions' type='TabItem'}") - mouseClick(qtVersionTab, 5, 5, 0, Qt.LeftButton) - qtVersionsTree = waitForObject("{name='qtdirList' type='QTreeWidget' visible='1'}") - rootIndex = qtVersionsTree.invisibleRootItem() - for current in dumpChildren(rootIndex): - child = getTreeWidgetChildByText(current, qtVersion) - if child != None: - break - if child != None: - qmake = "%s" % child.text(1) - if not os.path.exists(qmake): - test.warning("Qt version ('%s') found inside SettingsDialog does not exist." % qtVersion) - qmake = None - else: - test.warning("Could not find the Qt version ('%s') inside SettingsDialog." % qtVersion) - qmake = None - clickButton(waitForObject("{text='Cancel' type='QPushButton' unnamed='1' visible='1' " - "window=':Options_Core::Internal::SettingsDialog'}")) - return qmake - -def getTreeWidgetChildByText(parent, text, column=0): - for child in dumpChildren(parent): - if child.text(column)==text: - return child - return None - # helper that double clicks the table view at specified row and column # returns the QExpandingLineEdit (the editable table cell) def __doubleClickQTableView__(qtableView, row, column): |