eric6/WebBrowser/SafeBrowsing/SafeBrowsingInfoWidget.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
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

eric ide

mercurial