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": |