8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
12 from PyQt4.QtCore import QTimer, QDate, QProcess, QRegExp, Qt, pyqtSlot |
12 from PyQt4.QtCore import QTimer, QDate, QProcess, QRegExp, Qt, pyqtSlot |
13 from PyQt4.QtGui import QWidget, QCursor, QHeaderView, QLineEdit, QDialog, \ |
13 from PyQt4.QtGui import QCursor, QHeaderView, QLineEdit, QDialog, \ |
14 QApplication, QDialogButtonBox, QTreeWidgetItem |
14 QApplication, QDialogButtonBox, QTreeWidgetItem |
15 |
15 |
16 from E5Gui import E5MessageBox |
16 from E5Gui import E5MessageBox |
17 |
17 |
18 from .SvnDiffDialog import SvnDiffDialog |
18 from .SvnDiffDialog import SvnDiffDialog |
33 Constructor |
33 Constructor |
34 |
34 |
35 @param vcs reference to the vcs object |
35 @param vcs reference to the vcs object |
36 @param parent parent widget (QWidget) |
36 @param parent parent widget (QWidget) |
37 """ |
37 """ |
38 QDialog.__init__(self, parent) |
38 super().__init__(parent) |
39 self.setupUi(self) |
39 self.setupUi(self) |
40 |
40 |
41 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
41 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
42 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
42 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
43 |
43 |