32 @param amend flag indicating to amend the HEAD commit (boolean) |
32 @param amend flag indicating to amend the HEAD commit (boolean) |
33 @param commitAll flag indicating to commit all local changes (boolean) |
33 @param commitAll flag indicating to commit all local changes (boolean) |
34 @param parent parent widget (QWidget) |
34 @param parent parent widget (QWidget) |
35 """ |
35 """ |
36 super(GitCommitDialog, self).__init__( |
36 super(GitCommitDialog, self).__init__( |
37 parent, Qt.WindowFlags(Qt.Window)) |
37 parent, Qt.WindowFlags(Qt.WindowType.Window)) |
38 self.setupUi(self) |
38 self.setupUi(self) |
39 |
39 |
40 self.__vcs = vcs |
40 self.__vcs = vcs |
41 |
41 |
42 self.logEdit.setPlainText(msg) |
42 self.logEdit.setPlainText(msg) |
107 """ |
107 """ |
108 Private slot called by a button of the button box clicked. |
108 Private slot called by a button of the button box clicked. |
109 |
109 |
110 @param button button that was clicked (QAbstractButton) |
110 @param button button that was clicked (QAbstractButton) |
111 """ |
111 """ |
112 if button == self.buttonBox.button(QDialogButtonBox.Cancel): |
112 if button == self.buttonBox.button( |
|
113 QDialogButtonBox.StandardButton.Cancel |
|
114 ): |
113 self.logEdit.clear() |
115 self.logEdit.clear() |
114 |
116 |
115 def on_buttonBox_accepted(self): |
117 def on_buttonBox_accepted(self): |
116 """ |
118 """ |
117 Private slot called by the buttonBox accepted signal. |
119 Private slot called by the buttonBox accepted signal. |