7 Module implementing a dialog to configure the AdBlock exceptions. |
7 Module implementing a dialog to configure the AdBlock exceptions. |
8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 from PyQt5.QtCore import pyqtSlot |
12 from PyQt5.QtCore import pyqtSlot, Qt |
13 from PyQt5.QtWidgets import QDialog |
13 from PyQt5.QtWidgets import QDialog |
14 |
14 |
15 from .Ui_AdBlockExceptionsDialog import Ui_AdBlockExceptionsDialog |
15 from .Ui_AdBlockExceptionsDialog import Ui_AdBlockExceptionsDialog |
16 |
16 |
17 import UI.PixmapCache |
17 import UI.PixmapCache |
27 |
27 |
28 @param parent reference to the parent widget (QWidget) |
28 @param parent reference to the parent widget (QWidget) |
29 """ |
29 """ |
30 super(AdBlockExceptionsDialog, self).__init__(parent) |
30 super(AdBlockExceptionsDialog, self).__init__(parent) |
31 self.setupUi(self) |
31 self.setupUi(self) |
|
32 self.setWindowFlags(Qt.Window) |
32 |
33 |
33 self.iconLabel.setPixmap( |
34 self.iconLabel.setPixmap( |
34 UI.PixmapCache.getPixmap("adBlockPlusGreen48.png")) |
35 UI.PixmapCache.getPixmap("adBlockPlusGreen48.png")) |
35 |
36 |
36 self.hostEdit.setInactiveText(self.tr("Enter host to be added...")) |
37 self.hostEdit.setInactiveText(self.tr("Enter host to be added...")) |