7 Module implementing the AdBlock configuration dialog. |
7 Module implementing the AdBlock configuration dialog. |
8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 from PyQt5.QtCore import pyqtSlot, QTimer, QCoreApplication |
12 from PyQt5.QtCore import pyqtSlot, Qt, QTimer, QCoreApplication |
13 from PyQt5.QtWidgets import QDialog, QMenu, QToolButton |
13 from PyQt5.QtWidgets import QDialog, QMenu, QToolButton |
14 |
14 |
15 from E5Gui import E5MessageBox |
15 from E5Gui import E5MessageBox |
16 |
16 |
17 from .Ui_AdBlockDialog import Ui_AdBlockDialog |
17 from .Ui_AdBlockDialog import Ui_AdBlockDialog |
30 |
30 |
31 @param parent reference to the parent object (QWidget) |
31 @param parent reference to the parent object (QWidget) |
32 """ |
32 """ |
33 super(AdBlockDialog, self).__init__(parent) |
33 super(AdBlockDialog, self).__init__(parent) |
34 self.setupUi(self) |
34 self.setupUi(self) |
|
35 self.setWindowFlags(Qt.Window) |
35 |
36 |
36 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("adBlockPlus48.png")) |
37 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("adBlockPlus48.png")) |
37 |
38 |
38 self.updateSpinBox.setValue(Preferences.getHelp("AdBlockUpdatePeriod")) |
39 self.updateSpinBox.setValue(Preferences.getHelp("AdBlockUpdatePeriod")) |
39 |
40 |