MCPcopy Create free account
hub / github.com/KDE/kdevelop / enableCommitButton

Method enableCommitButton

plugins/git/simplecommitform.cpp:165–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 m_commitBtn->setToolTip(i18n("Please stage some changes before committing."));
164}
165void SimpleCommitForm::enableCommitButton()
166{
167 m_disabled = false;
168 if (m_summaryEdit->text().size() > 0) {
169 m_commitBtn->setToolTip(i18n("Commit changes to <b>%1</b> on branch <b>%2</b>", m_projectName, m_branchName));
170 m_commitBtn->setDisabled(false);
171 } else {
172 m_commitBtn->setToolTip(i18n("To commit changes, please write a commit message first"));
173 }
174}
175
176void SimpleCommitForm::disable()
177{

Callers 2

CommitToolViewMethod · 0.80
activateProjectMethod · 0.80

Calls 3

setToolTipMethod · 0.80
sizeMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected