| 130 | // Test... |
| 131 | |
| 132 | void TestResultsTree::test1() const |
| 133 | { |
| 134 | // #12772 : GUI: information messages are shown even though information tool button is deselected |
| 135 | ResultsTree tree(nullptr); |
| 136 | tree.showResults(ShowTypes::ShowType::ShowInformation, false); |
| 137 | ErrorItem errorItem; |
| 138 | errorItem.errorPath << QErrorPathItem(); |
| 139 | errorItem.severity = Severity::information; |
| 140 | tree.addErrorItem(errorItem); |
| 141 | QCOMPARE(tree.isRowHidden(0,QModelIndex()), true); // Added item is hidden |
| 142 | tree.showResults(ShowTypes::ShowType::ShowInformation, true); |
| 143 | QCOMPARE(tree.isRowHidden(0,QModelIndex()), false); // Show item |
| 144 | } |
| 145 | |
| 146 | void TestResultsTree::duplicateResults() const |
| 147 | { |
nothing calls this directly
no test coverage detected