| 21 | /******** Callbacks to events in the UI (set up in the derived classes) ********/ |
| 22 | |
| 23 | void 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 | |
| 36 | QMap<QString, QString> ResourcePackResourcePage::urlHandlers() const |
| 37 | { |
nothing calls this directly
no test coverage detected