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

Method handleNewStuffDialogFinished

plugins/appwizard/projectselectionpage.cpp:330–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void ProjectSelectionPage::handleNewStuffDialogFinished(const QList<KNSCore::Entry>& changedEntries)
331{
332 if (changedEntries.isEmpty()) {
333 return;
334 }
335
336 m_templatesModel->refresh();
337 bool updated = false;
338
339 for (const auto& entry : changedEntries) {
340 if (!entry.installedFiles().isEmpty())
341 {
342 updated = true;
343 setCurrentTemplate(entry.installedFiles().at(0));
344 break;
345 }
346 }
347
348 if (!updated)
349 {
350 ui->listView->setCurrentIndex(QModelIndex());
351 }
352}
353
354void ProjectSelectionPage::setCurrentTemplate (const QString& fileName)
355{

Callers

nothing calls this directly

Calls 5

setCurrentIndexMethod · 0.80
QModelIndexClass · 0.70
isEmptyMethod · 0.45
refreshMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected