eric6/Plugins/VcsPlugins/vcsGit/GitCommitDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8151
8c1445825e7b
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
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)
56 abbrMsg = message[:60] 56 abbrMsg = message[:60]
57 if len(message) > 60: 57 if len(message) > 60:
58 abbrMsg += "..." 58 abbrMsg += "..."
59 self.recentComboBox.addItem(abbrMsg, message) 59 self.recentComboBox.addItem(abbrMsg, message)
60 60
61 self.logEdit.setFocus(Qt.OtherFocusReason) 61 self.logEdit.setFocus(Qt.FocusReason.OtherFocusReason)
62 62
63 def logMessage(self): 63 def logMessage(self):
64 """ 64 """
65 Public method to retrieve the log message. 65 Public method to retrieve the log message.
66 66
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.

eric ide

mercurial