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

Method triggerSearch

launcher/ui/pages/modplatform/ModPage.cpp:91–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void ModPage::triggerSearch()
92{
93 auto changed = m_filter_widget->changed();
94 m_filter = m_filter_widget->getFilter();
95 m_ui->packView->selectionModel()->setCurrentIndex({}, QItemSelectionModel::SelectionFlag::ClearAndSelect);
96 m_ui->packView->clearSelection();
97 m_ui->packDescription->clear();
98 m_ui->versionSelectionBox->clear();
99 updateSelectionButton();
100
101 static_cast<ModModel*>(m_model)->searchWithTerm(getSearchTerm(), m_ui->sortByBox->currentData().toUInt(), changed);
102 m_fetchProgress.watch(m_model->activeSearchJob().get());
103}
104
105QMap<QString, QString> ModPage::urlHandlers() const
106{

Callers 1

openUrlMethod · 0.45

Calls 6

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

Tested by

no test coverage detected