Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2406
975af671146d
child 2791
a9577f248f04
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to browse the log history. 7 Module implementing a dialog to browse the log history.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
11 try:
12 str = unicode
13 except (NameError):
14 pass
9 15
10 import os 16 import os
11 17
12 from PyQt4.QtCore import QTimer, QDate, QProcess, QRegExp, Qt, pyqtSlot 18 from PyQt4.QtCore import QTimer, QDate, QProcess, QRegExp, Qt, pyqtSlot
13 from PyQt4.QtGui import QCursor, QHeaderView, QLineEdit, QDialog, \ 19 from PyQt4.QtGui import QCursor, QHeaderView, QLineEdit, QDialog, \
29 Constructor 35 Constructor
30 36
31 @param vcs reference to the vcs object 37 @param vcs reference to the vcs object
32 @param parent parent widget (QWidget) 38 @param parent parent widget (QWidget)
33 """ 39 """
34 super().__init__(parent) 40 super(SvnLogBrowserDialog, self).__init__(parent)
35 self.setupUi(self) 41 self.setupUi(self)
36 42
37 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) 43 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
38 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) 44 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
39 45
631 """ 637 """
632 if self.intercept: 638 if self.intercept:
633 self.intercept = False 639 self.intercept = False
634 evt.accept() 640 evt.accept()
635 return 641 return
636 super().keyPressEvent(evt) 642 super(SvnLogBrowserDialog, self).keyPressEvent(evt)

eric ide

mercurial