diff -r bad2e89047e7 -r 7848489bcb92 Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/HgBookmarksListDialog.py --- a/Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/HgBookmarksListDialog.py Fri Oct 11 19:51:20 2013 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/HgBookmarksListDialog.py Sat Oct 12 15:01:28 2013 +0200 @@ -10,8 +10,8 @@ import os from PyQt4.QtCore import pyqtSlot, QProcess, Qt, QTimer, QCoreApplication -from PyQt4.QtGui import QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem, \ - QLineEdit +from PyQt4.QtGui import QDialog, QDialogButtonBox, QHeaderView, \ + QTreeWidgetItem, QLineEdit from E5Gui import E5MessageBox @@ -42,7 +42,8 @@ self.__bookmarksList = None self.__hgClient = vcs.getClient() - self.bookmarksList.headerItem().setText(self.bookmarksList.columnCount(), "") + self.bookmarksList.headerItem().setText( + self.bookmarksList.columnCount(), "") self.bookmarksList.header().setSortIndicator(3, Qt.AscendingOrder) self.process.finished.connect(self.__procFinished) @@ -130,7 +131,8 @@ def __finish(self): """ - Private slot called when the process finished or the user pressed the button. + Private slot called when the process finished or the user pressed + the button. """ if self.process is not None and \ self.process.state() != QProcess.NotRunning: @@ -144,13 +146,15 @@ self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True) self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) - self.buttonBox.button(QDialogButtonBox.Close).setFocus(Qt.OtherFocusReason) + self.buttonBox.button(QDialogButtonBox.Close).setFocus( + Qt.OtherFocusReason) self.process = None if self.bookmarksList.topLevelItemCount() == 0: # no bookmarks defined - self.__generateItem(self.trUtf8("no bookmarks defined"), "", "", "") + self.__generateItem( + self.trUtf8("no bookmarks defined"), "", "", "") self.__resizeColumns() self.__resort() @@ -188,7 +192,8 @@ """ Private method to resize the list columns. """ - self.bookmarksList.header().resizeSections(QHeaderView.ResizeToContents) + self.bookmarksList.header().resizeSections( + QHeaderView.ResizeToContents) self.bookmarksList.header().setStretchLastSection(True) def __generateItem(self, revision, changeset, status, name):