Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

changeset 1131
7781e396c903
parent 1086
b48ce064b224
child 1241
09c6155ee612
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
10 import os 10 import os
11 11
12 from PyQt4.QtCore import pyqtSlot, Qt, QDate, QProcess, QTimer, QRegExp, \ 12 from PyQt4.QtCore import pyqtSlot, Qt, QDate, QProcess, QTimer, QRegExp, \
13 QSize, QPoint 13 QSize, QPoint
14 from PyQt4.QtGui import QDialog, QDialogButtonBox, QHeaderView, \ 14 from PyQt4.QtGui import QDialog, QDialogButtonBox, QHeaderView, \
15 QTreeWidgetItem, QApplication, QCursor, QWidget, QLineEdit, QColor, \ 15 QTreeWidgetItem, QApplication, QCursor, QLineEdit, QColor, \
16 QPixmap, QPainter, QPen, QBrush, QIcon 16 QPixmap, QPainter, QPen, QBrush, QIcon
17 17
18 from E5Gui.E5Application import e5App 18 from E5Gui.E5Application import e5App
19 from E5Gui import E5MessageBox 19 from E5Gui import E5MessageBox
20 20
50 @param vcs reference to the vcs object 50 @param vcs reference to the vcs object
51 @param mode mode of the dialog (string; one of log, incoming, outgoing) 51 @param mode mode of the dialog (string; one of log, incoming, outgoing)
52 @param bundle name of a bundle file (string) 52 @param bundle name of a bundle file (string)
53 @param parent parent widget (QWidget) 53 @param parent parent widget (QWidget)
54 """ 54 """
55 QDialog.__init__(self, parent) 55 super().__init__(parent)
56 self.setupUi(self) 56 self.setupUi(self)
57 57
58 if mode == "log": 58 if mode == "log":
59 self.setWindowTitle(self.trUtf8("Mercurial Log")) 59 self.setWindowTitle(self.trUtf8("Mercurial Log"))
60 elif mode == "incoming": 60 elif mode == "incoming":
1190 """ 1190 """
1191 if self.intercept: 1191 if self.intercept:
1192 self.intercept = False 1192 self.intercept = False
1193 evt.accept() 1193 evt.accept()
1194 return 1194 return
1195 QWidget.keyPressEvent(self, evt) 1195 super().keyPressEvent(evt)

eric ide

mercurial