Plugins/VcsPlugins/vcsMercurial/HgCommitDialog.py

changeset 1906
8487f9c2533b
parent 1855
93bf1823466a
child 2302
f29e9405c851
equal deleted inserted replaced
1905:7ad9161c5293 1906:8487f9c2533b
35 super().__init__(parent, Qt.WindowFlags(Qt.Window)) 35 super().__init__(parent, Qt.WindowFlags(Qt.Window))
36 self.setupUi(self) 36 self.setupUi(self)
37 37
38 if vcs.version < (2, 2): 38 if vcs.version < (2, 2):
39 self.amendCheckBox.setEnabled(False) 39 self.amendCheckBox.setEnabled(False)
40
41 self.subrepoCheckBox.setVisible(vcs.hasSubrepositories())
40 42
41 def showEvent(self, evt): 43 def showEvent(self, evt):
42 """ 44 """
43 Public method called when the dialog is about to be shown. 45 Public method called when the dialog is about to be shown.
44 46
74 76
75 @return state of the amend flag (boolean) 77 @return state of the amend flag (boolean)
76 """ 78 """
77 return self.amendCheckBox.isChecked() 79 return self.amendCheckBox.isChecked()
78 80
81 def commitSubrepositories(self):
82 """
83 Public method to retrieve the state of the commit sub-repositories flag.
84
85 @return state of the sub-repositories flag (boolean)
86 """
87 return self.subrepoCheckBox.isChecked()
88
79 def on_buttonBox_clicked(self, button): 89 def on_buttonBox_clicked(self, button):
80 """ 90 """
81 Private slot called by a button of the button box clicked. 91 Private slot called by a button of the button box clicked.
82 92
83 @param button button that was clicked (QAbstractButton) 93 @param button button that was clicked (QAbstractButton)

eric ide

mercurial