56 self.historyTree.header().setStretchLastSection(True) |
56 self.historyTree.header().setStretchLastSection(True) |
57 self.historyTree.setContextMenuPolicy(Qt.CustomContextMenu) |
57 self.historyTree.setContextMenuPolicy(Qt.CustomContextMenu) |
58 |
58 |
59 self.connect(self.historyTree, SIGNAL("activated(const QModelIndex&)"), |
59 self.connect(self.historyTree, SIGNAL("activated(const QModelIndex&)"), |
60 self.__activated) |
60 self.__activated) |
61 self.connect(self.historyTree, |
61 self.historyTree.customContextMenuRequested.connect( |
62 SIGNAL("customContextMenuRequested(const QPoint &)"), |
62 self.__customContextMenuRequested) |
63 self.__customContextMenuRequested) |
|
64 |
63 |
65 self.connect(self.searchEdit, SIGNAL("textChanged(QString)"), |
64 self.connect(self.searchEdit, SIGNAL("textChanged(QString)"), |
66 self.__proxyModel.setFilterFixedString) |
65 self.__proxyModel.setFilterFixedString) |
67 self.connect(self.removeButton, SIGNAL("clicked()"), |
66 self.connect(self.removeButton, SIGNAL("clicked()"), |
68 self.historyTree.removeSelected) |
67 self.historyTree.removeSelected) |