MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / editApplication

Method editApplication

gui/settingsdialog.cpp:268–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void SettingsDialog::editApplication()
269{
270 for (QListWidgetItem *item : mUI->mListWidget->selectedItems()) {
271 const int row = mUI->mListWidget->row(item);
272 Application& app = mTempApplications->getApplication(row);
273 ApplicationDialog dialog(tr("Modify an application"), app, this);
274
275 if (dialog.exec() == QDialog::Accepted) {
276 QString name = app.getName();
277 if (mTempApplications->getDefaultApplication() == row)
278 name += tr(" [Default]");
279 item->setText(name);
280 }
281 }
282}
283
284void SettingsDialog::defaultApplication()
285{

Callers

nothing calls this directly

Calls 1

getDefaultApplicationMethod · 0.80

Tested by

no test coverage detected