--- a/Helpviewer/CookieJar/CookiesDialog.py Tue Aug 10 19:40:44 2010 +0200 +++ b/Helpviewer/CookieJar/CookiesDialog.py Wed Aug 11 09:42:20 2010 +0200 @@ -44,16 +44,12 @@ model = CookieModel(cookieJar, self) self.__proxyModel = QSortFilterProxyModel(self) self.__proxyModel.setSourceModel(model) - self.connect(self.searchEdit, SIGNAL("textChanged(QString)"), - self.__proxyModel.setFilterFixedString) + self.searchEdit.textChanged.connect(self.__proxyModel.setFilterFixedString) self.cookiesTable.setModel(self.__proxyModel) self.cookiesTable.doubleClicked.connect(self.__showCookieDetails) - self.connect(self.cookiesTable.selectionModel(), - SIGNAL("selectionChanged(const QItemSelection&, const QItemSelection&)"), - self.__tableSelectionChanged) - self.connect(self.cookiesTable.model(), - SIGNAL("modelReset()"), - self.__tableModelReset) + self.cookiesTable.selectionModel().selectionChanged.connect( + self.__tableSelectionChanged) + self.cookiesTable.model().modelReset.connect(self.__tableModelReset) fm = QFontMetrics(QFont()) height = fm.height() + fm.height() // 3 @@ -135,4 +131,4 @@ """ Private slot to handle a reset of the cookies table. """ - self.addButton.setEnabled(False) \ No newline at end of file + self.addButton.setEnabled(False)