Plugins/VcsPlugins/vcsMercurial/HgCommitDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 2847
1843ef6e2656
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to enter the commit message. 7 Module implementing a dialog to enter the commit message.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import pyqtSlot, pyqtSignal, Qt 12 from PyQt4.QtCore import pyqtSlot, pyqtSignal, Qt
11 from PyQt4.QtGui import QWidget, QDialogButtonBox 13 from PyQt4.QtGui import QWidget, QDialogButtonBox
12 14
13 from .Ui_HgCommitDialog import Ui_HgCommitDialog 15 from .Ui_HgCommitDialog import Ui_HgCommitDialog
30 Constructor 32 Constructor
31 33
32 @param vcs reference to the vcs object 34 @param vcs reference to the vcs object
33 @param parent parent widget (QWidget) 35 @param parent parent widget (QWidget)
34 """ 36 """
35 super().__init__(parent, Qt.WindowFlags(Qt.Window)) 37 super(HgCommitDialog, self).__init__(parent, Qt.WindowFlags(Qt.Window))
36 self.setupUi(self) 38 self.setupUi(self)
37 39
38 if vcs.version < (2, 2): 40 if vcs.version < (2, 2):
39 self.amendCheckBox.setEnabled(False) 41 self.amendCheckBox.setEnabled(False)
40 42

eric ide

mercurial