Module implementing a tree view and associated model to show the test result data.
TopLevelId |
TestResultsFilterModel | Class implementing a filter model to filter the test results by status. |
TestResultsModel | Class implementing the item model containing the test data. |
TestResultsTreeView | Class implementing a tree view to show the test result data. |
None |
Class implementing a filter model to filter the test results by status.
None |
None |
TestResultsFilterModel | Constructor |
filterAcceptsRow | Public method to determine, if the row is acceptable. |
setStatusFilterString | Public method to set the status filter string. |
None |
Constructor
Public method to determine, if the row is acceptable.
Public method to set the status filter string.
Class implementing the item model containing the test data.
DurationColumn |
Headers |
MessageColumn |
NameColumn |
StatusColumn |
None |
TestResultsModel | Constructor |
__summary | Private method to generate a test results summary text. |
addTestResults | Public method to add test results to the ones already managed by the model. |
clear | Public method to clear the model data. |
columnCount | Public method to get the number of columns. |
data | Public method to get the data for the various columns and roles. |
durationKey | Function to generate a key for duration sorting |
getFailedTests | Public method to extract the test ids of all failed tests. |
getStatusFilterList | Public method to get a list of the unique test result status. |
getTestResults | Public method to get the list of test results managed by the model. |
headerData | Public method to get the header string for the various sections. |
index | Public method to generate an index for the given row and column to identify the item. |
parent | Public method to get the parent of the item pointed to by index. |
rowCount | Public method to get the number of row for a given parent index. |
setTestResults | Public method to set the list of test results of the model. |
sort | Public method to sort the model data by column in order. |
updateTestResults | Public method to update the data of managed test result items. |
None |
Constructor
Private method to generate a test results summary text.
Public method to add test results to the ones already managed by the model.
Public method to clear the model data.
Public method to get the number of columns.
Public method to get the data for the various columns and roles.
Function to generate a key for duration sorting
Public method to extract the test ids of all failed tests.
Public method to get a list of the unique test result status.
Public method to get the list of test results managed by the model.
Public method to get the header string for the various sections.
Public method to generate an index for the given row and column to identify the item.
Public method to get the parent of the item pointed to by index.
Public method to get the number of row for a given parent index.
Public method to set the list of test results of the model.
Public method to sort the model data by column in order.
Public method to update the data of managed test result items.
Class implementing a tree view to show the test result data.
None |
None |
TestResultsTreeView | Constructor |
__canonicalIndex | Private method to create the canonical index for a given index. |
__createBackgroundContextMenu | Private method to create a context menu for the background. |
__createContextMenu | Private method to create a context menu for the item pointed to by the given index. |
__gotoTestDefinition | Private slot to show the test definition. |
__showContextMenu | Private slot to show the context menu. |
dataChanged | Public method called when the model data has changed. |
reset | Public method to reset the internal state of the view. |
resizeColumns | Public method to resize the columns to their contents. |
rowsInserted | Public method called when rows are inserted. |
spanFirstColumn | Public method to make the first column span the row for second level items. |
None |
Constructor
Private method to create the canonical index for a given index.
The canonical index is the index of the first column of the test result entry (i.e. the top-level item). If the index is invalid, None is returned.
Private method to create a context menu for the background.
Private method to create a context menu for the item pointed to by the given index.
Private slot to show the test definition.
Private slot to show the context menu.
Public method called when the model data has changed.
Public method to reset the internal state of the view.
Public method to resize the columns to their contents.
Public method called when rows are inserted.
Public method to make the first column span the row for second level items.
These items contain the test results.