32 |
32 |
33 layout = QHBoxLayout(self) |
33 layout = QHBoxLayout(self) |
34 |
34 |
35 iconLabel = QLabel(self) |
35 iconLabel = QLabel(self) |
36 iconLabel.setPixmap(UI.PixmapCache.getPixmap("safeBrowsing48")) |
36 iconLabel.setPixmap(UI.PixmapCache.getPixmap("safeBrowsing48")) |
37 layout.addWidget(iconLabel, 0, Qt.AlignTop) |
37 layout.addWidget(iconLabel, 0, Qt.AlignmentFlag.AlignTop) |
38 |
38 |
39 infoLabel = QLabel(self) |
39 infoLabel = QLabel(self) |
40 infoLabel.setWordWrap(True) |
40 infoLabel.setWordWrap(True) |
41 infoLabel.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) |
41 infoLabel.setSizePolicy(QSizePolicy.Policy.Expanding, |
|
42 QSizePolicy.Policy.Expanding) |
42 infoLabel.setText(info) |
43 infoLabel.setText(info) |
43 layout.addWidget(infoLabel, 0, Qt.AlignTop) |
44 layout.addWidget(infoLabel, 0, Qt.AlignmentFlag.AlignTop) |
44 |
45 |
45 def showAt(self, pos): |
46 def showAt(self, pos): |
46 """ |
47 """ |
47 Public method to show the widget. |
48 Public method to show the widget. |
48 |
49 |