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) |