66 """ |
66 """ |
67 super().__init__(parent) |
67 super().__init__(parent) |
68 self.setupUi(self) |
68 self.setupUi(self) |
69 |
69 |
70 self.__resultsModel = TestResultsModel(self) |
70 self.__resultsModel = TestResultsModel(self) |
|
71 self.__resultsModel.summary.connect(self.__setStatusLabel) |
71 self.__resultsTree = TestResultsTreeView(self) |
72 self.__resultsTree = TestResultsTreeView(self) |
72 self.__resultsTree.setModel(self.__resultsModel) |
73 self.__resultsTree.setModel(self.__resultsModel) |
73 self.resultsGroupBox.layout().addWidget(self.__resultsTree) |
74 self.resultsGroupBox.layout().addWidget(self.__resultsTree) |
74 |
75 |
75 self.versionsButton.setIcon( |
76 self.versionsButton.setIcon( |
743 @type str |
745 @type str |
744 """ |
746 """ |
745 self.__coverageFile = coverageFile |
747 self.__coverageFile = coverageFile |
746 |
748 |
747 # TODO: implement the handling of the 'Show Coverage' button |
749 # TODO: implement the handling of the 'Show Coverage' button |
|
750 |
|
751 @pyqtSlot(str) |
|
752 def __setStatusLabel(self, statusText): |
|
753 """ |
|
754 Private slot to set the status label to the text sent by the model. |
|
755 |
|
756 @param statusText text to be shown |
|
757 @type str |
|
758 """ |
|
759 self.statusLabel.setText(f"<b>{statusText}</b>") |
748 |
760 |
749 |
761 |
750 class UnittestWindow(EricMainWindow): |
762 class UnittestWindow(EricMainWindow): |
751 """ |
763 """ |
752 Main window class for the standalone dialog. |
764 Main window class for the standalone dialog. |