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 PyQt4.QtCore import pyqtSlot |
10 from PyQt4.QtCore import pyqtSlot |
11 from PyQt4.QtGui import QDialog |
11 from PyQt4.QtGui import QDialog |
12 |
|
13 from E5Gui.E5LineEditButton import E5LineEditButton |
|
14 from E5Gui.E5LineEdit import E5LineEdit |
|
15 |
12 |
16 from .Ui_AdBlockExceptionsDialog import Ui_AdBlockExceptionsDialog |
13 from .Ui_AdBlockExceptionsDialog import Ui_AdBlockExceptionsDialog |
17 |
14 |
18 import Helpviewer.HelpWindow |
15 import Helpviewer.HelpWindow |
19 |
16 |
34 self.setupUi(self) |
31 self.setupUi(self) |
35 |
32 |
36 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("adBlockPlusGreen48.png")) |
33 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("adBlockPlusGreen48.png")) |
37 |
34 |
38 self.hostEdit.setInactiveText(self.trUtf8("Enter host to be added...")) |
35 self.hostEdit.setInactiveText(self.trUtf8("Enter host to be added...")) |
39 self.__clearHostButton = E5LineEditButton(self) |
|
40 self.__clearHostButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png")) |
|
41 self.hostEdit.addWidget(self.__clearHostButton, E5LineEdit.RightSide) |
|
42 self.__clearHostButton.clicked[()].connect(self.hostEdit.clear) |
|
43 |
36 |
44 self.buttonBox.setFocus() |
37 self.buttonBox.setFocus() |
45 |
38 |
46 def load(self, hosts): |
39 def load(self, hosts): |
47 """ |
40 """ |