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

Method defaultApplication

gui/settingsdialog.cpp:284–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void SettingsDialog::defaultApplication()
285{
286 QList<QListWidgetItem *> selected = mUI->mListWidget->selectedItems();
287 if (!selected.isEmpty()) {
288 const int index = mUI->mListWidget->row(selected[0]);
289 mTempApplications->setDefault(index);
290 mUI->mListWidget->clear();
291 populateApplicationList();
292 }
293}
294
295void SettingsDialog::populateApplicationList()
296{

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.80
setDefaultMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected