8 """ |
8 """ |
9 |
9 |
10 from PyQt4.QtCore import * |
10 from PyQt4.QtCore import * |
11 from PyQt4.QtGui import * |
11 from PyQt4.QtGui import * |
12 |
12 |
13 from E4Gui.E4TreeSortFilterProxyModel import E4TreeSortFilterProxyModel |
13 from E5Gui.E5TreeSortFilterProxyModel import E5TreeSortFilterProxyModel |
14 |
14 |
15 import Helpviewer.HelpWindow |
15 import Helpviewer.HelpWindow |
16 |
16 |
17 from .Ui_AdBlockDialog import Ui_AdBlockDialog |
17 from .Ui_AdBlockDialog import Ui_AdBlockDialog |
18 |
18 |
33 self.setupUi(self) |
33 self.setupUi(self) |
34 |
34 |
35 self.clearButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png")) |
35 self.clearButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png")) |
36 |
36 |
37 self.__adBlockModel = AdBlockModel(self) |
37 self.__adBlockModel = AdBlockModel(self) |
38 self.__proxyModel = E4TreeSortFilterProxyModel(self) |
38 self.__proxyModel = E5TreeSortFilterProxyModel(self) |
39 self.__proxyModel.setSourceModel(self.__adBlockModel) |
39 self.__proxyModel.setSourceModel(self.__adBlockModel) |
40 self.subscriptionsTree.setModel(self.__proxyModel) |
40 self.subscriptionsTree.setModel(self.__proxyModel) |
41 |
41 |
42 self.connect(self.searchEdit, SIGNAL("textChanged(QString)"), |
42 self.connect(self.searchEdit, SIGNAL("textChanged(QString)"), |
43 self.__proxyModel.setFilterFixedString) |
43 self.__proxyModel.setFilterFixedString) |