MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / triggerSearch

Method triggerSearch

launcher/ui/pages/modplatform/ResourcePackPage.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21/******** Callbacks to events in the UI (set up in the derived classes) ********/
22
23void ResourcePackResourcePage::triggerSearch()
24{
25 m_ui->packView->selectionModel()->setCurrentIndex({}, QItemSelectionModel::SelectionFlag::ClearAndSelect);
26 m_ui->packView->clearSelection();
27 m_ui->packDescription->clear();
28 m_ui->versionSelectionBox->clear();
29
30 updateSelectionButton();
31
32 static_cast<ResourcePackResourceModel*>(m_model)->searchWithTerm(getSearchTerm(), m_ui->sortByBox->currentData().toUInt());
33 m_fetchProgress.watch(m_model->activeSearchJob().get());
34}
35
36QMap<QString, QString> ResourcePackResourcePage::urlHandlers() const
37{

Callers

nothing calls this directly

Calls 5

watchMethod · 0.80
clearMethod · 0.45
searchWithTermMethod · 0.45
getMethod · 0.45
activeSearchJobMethod · 0.45

Tested by

no test coverage detected