src/eric7/WebBrowser/SafeBrowsing/SafeBrowsingInfoWidget.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
8 """ 8 """
9 9
10 from PyQt6.QtCore import Qt, QPoint 10 from PyQt6.QtCore import Qt, QPoint
11 from PyQt6.QtWidgets import QMenu, QLabel, QHBoxLayout, QSizePolicy 11 from PyQt6.QtWidgets import QMenu, QLabel, QHBoxLayout, QSizePolicy
12 12
13 import UI.PixmapCache 13 from eric7.EricGui import EricPixmapCache
14 14
15 15
16 class SafeBrowsingInfoWidget(QMenu): 16 class SafeBrowsingInfoWidget(QMenu):
17 """ 17 """
18 Class implementing a widget to show some threat information. 18 Class implementing a widget to show some threat information.
32 self.setMinimumWidth(500) 32 self.setMinimumWidth(500)
33 33
34 layout = QHBoxLayout(self) 34 layout = QHBoxLayout(self)
35 35
36 iconLabel = QLabel(self) 36 iconLabel = QLabel(self)
37 iconLabel.setPixmap(UI.PixmapCache.getPixmap("safeBrowsing48")) 37 iconLabel.setPixmap(EricPixmapCache.getPixmap("safeBrowsing48"))
38 layout.addWidget(iconLabel, 0, Qt.AlignmentFlag.AlignTop) 38 layout.addWidget(iconLabel, 0, Qt.AlignmentFlag.AlignTop)
39 39
40 infoLabel = QLabel(self) 40 infoLabel = QLabel(self)
41 infoLabel.setWordWrap(True) 41 infoLabel.setWordWrap(True)
42 infoLabel.setSizePolicy( 42 infoLabel.setSizePolicy(

eric ide

mercurial