1216 @type str |
1216 @type str |
1217 @param parent reference to the parent widget |
1217 @param parent reference to the parent widget |
1218 @type QWidget |
1218 @type QWidget |
1219 """ |
1219 """ |
1220 super().__init__(parent) |
1220 super().__init__(parent) |
1221 self.__cw = TestingWidget(testfile=testfile, parent=self) |
1221 self.__cw = TestingWidget(parent=self) |
1222 self.__cw.installEventFilter(self) |
1222 self.__cw.installEventFilter(self) |
1223 size = self.__cw.size() |
1223 size = self.__cw.size() |
1224 self.setCentralWidget(self.__cw) |
1224 self.setCentralWidget(self.__cw) |
1225 self.resize(size) |
1225 self.resize(size) |
1226 |
1226 |
1227 self.setStyle(Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) |
1227 self.setStyle(Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) |
1228 |
1228 |
1229 self.__cw.buttonBox.accepted.connect(self.close) |
1229 self.__cw.buttonBox.accepted.connect(self.close) |
1230 self.__cw.buttonBox.rejected.connect(self.close) |
1230 self.__cw.buttonBox.rejected.connect(self.close) |
|
1231 |
|
1232 self.__cw.setTestFile(testfile) |
1231 |
1233 |
1232 def eventFilter(self, obj, event): |
1234 def eventFilter(self, obj, event): |
1233 """ |
1235 """ |
1234 Public method to filter events. |
1236 Public method to filter events. |
1235 |
1237 |