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

Method refresh

plugins/grepview/grepoutputview.cpp:343–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343void GrepOutputView::refresh()
344{
345 int index = modelSelector->currentIndex();
346 if (index >= 0) {
347 QVariant var = modelSelector->currentData();
348 qvariant_cast<QObject*>(var)->deleteLater();
349 modelSelector->removeItem(index);
350
351 QVector<GrepJobSettings> refresh_history({
352 m_settingsHistory.takeAt(m_settingsHistory.count() - 1 - index)
353 });
354 refresh_history.first().fromHistory = false;
355
356 auto* const dlg = new GrepDialog(m_plugin, this, this, false);
357 dlg->historySearch(refresh_history);
358 }
359}
360
361void GrepOutputView::expandElements(const QModelIndex& index)
362{

Callers 7

reloadMethod · 0.45
TemplateSelectionPageMethod · 0.45
initTestCaseMethod · 0.45
slotNewProjectMethod · 0.45
reloadMethod · 0.45

Calls 5

removeItemMethod · 0.80
historySearchMethod · 0.80
currentIndexMethod · 0.45
countMethod · 0.45
firstMethod · 0.45

Tested by 1

initTestCaseMethod · 0.36