eric6/WebBrowser/AdBlock/AdBlockDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
31 @param parent reference to the parent object 31 @param parent reference to the parent object
32 @type QWidget 32 @type QWidget
33 """ 33 """
34 super(AdBlockDialog, self).__init__(parent) 34 super(AdBlockDialog, self).__init__(parent)
35 self.setupUi(self) 35 self.setupUi(self)
36 self.setWindowFlags(Qt.Window) 36 self.setWindowFlags(Qt.WindowType.Window)
37 37
38 self.__manager = manager 38 self.__manager = manager
39 39
40 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("adBlockPlus48")) 40 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("adBlockPlus48"))
41 41
57 57
58 menu = QMenu(self) 58 menu = QMenu(self)
59 menu.aboutToShow.connect(self.__aboutToShowActionMenu) 59 menu.aboutToShow.connect(self.__aboutToShowActionMenu)
60 self.actionButton.setMenu(menu) 60 self.actionButton.setMenu(menu)
61 self.actionButton.setIcon(UI.PixmapCache.getIcon("adBlockAction")) 61 self.actionButton.setIcon(UI.PixmapCache.getIcon("adBlockAction"))
62 self.actionButton.setPopupMode(QToolButton.InstantPopup) 62 self.actionButton.setPopupMode(
63 QToolButton.ToolButtonPopupMode.InstantPopup)
63 64
64 self.__load() 65 self.__load()
65 66
66 self.buttonBox.setFocus() 67 self.buttonBox.setFocus()
67 68

eric ide

mercurial