28 (boolean) |
28 (boolean) |
29 @param parent reference to the parent widget (QWidget) |
29 @param parent reference to the parent widget (QWidget) |
30 """ |
30 """ |
31 super(ErrorLogDialog, self).__init__(parent) |
31 super(ErrorLogDialog, self).__init__(parent) |
32 self.setupUi(self) |
32 self.setupUi(self) |
33 self.setWindowFlags(Qt.Window) |
33 self.setWindowFlags(Qt.WindowType.Window) |
34 |
34 |
35 pixmap = ( |
35 pixmap = ( |
36 self.style().standardIcon(QStyle.SP_MessageBoxQuestion) |
36 self.style().standardIcon( |
|
37 QStyle.StandardPixmap.SP_MessageBoxQuestion) |
37 .pixmap(32, 32) |
38 .pixmap(32, 32) |
38 ) |
39 ) |
39 self.icon.setPixmap(pixmap) |
40 self.icon.setPixmap(pixmap) |
40 |
41 |
41 if showMode: |
42 if showMode: |