6 """ |
6 """ |
7 Module implementing a tree widget for the AdBlock configuration dialog. |
7 Module implementing a tree widget for the AdBlock configuration dialog. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt4.QtCore import Qt |
10 from PyQt4.QtCore import Qt |
11 from PyQt4.QtGui import QAbstractItemView, QFont, QTreeWidgetItem, QInputDialog, \ |
11 from PyQt4.QtGui import QAbstractItemView, QFont, QTreeWidgetItem, \ |
12 QLineEdit, QMenu, QApplication, QColor |
12 QInputDialog, QLineEdit, QMenu, QApplication, QColor |
13 |
13 |
14 from E5Gui.E5TreeWidget import E5TreeWidget |
14 from E5Gui.E5TreeWidget import E5TreeWidget |
15 |
15 |
16 |
16 |
17 class AdBlockTreeWidget(E5TreeWidget): |
17 class AdBlockTreeWidget(E5TreeWidget): |
217 """ |
217 """ |
218 self.refresh() |
218 self.refresh() |
219 |
219 |
220 self.__itemChangingBlock = True |
220 self.__itemChangingBlock = True |
221 self.__topItem.setText(0, |
221 self.__topItem.setText(0, |
222 self.trUtf8("{0} (recently updated)").format(self.__subscription.title())) |
222 self.trUtf8("{0} (recently updated)").format( |
|
223 self.__subscription.title())) |
223 self.__itemChangingBlock = False |
224 self.__itemChangingBlock = False |
224 |
225 |
225 def __adjustItemFeatures(self, itm, rule): |
226 def __adjustItemFeatures(self, itm, rule): |
226 """ |
227 """ |
227 Private method to adjust an item. |
228 Private method to adjust an item. |