| 96 | } |
| 97 | |
| 98 | void ResourcePage::openedImpl() |
| 99 | { |
| 100 | if (!supportsFiltering()) { |
| 101 | m_ui->resourceFilterButton->setVisible(false); |
| 102 | m_ui->filterWidget->hide(); |
| 103 | } |
| 104 | |
| 105 | //: String in the search bar of the mod downloading dialog |
| 106 | m_ui->searchEdit->setPlaceholderText(tr("Search for %1...").arg(resourcesString())); |
| 107 | m_ui->resourceSelectionButton->setText(tr("Select %1 for download").arg(resourceString())); |
| 108 | |
| 109 | updateSelectionButton(); |
| 110 | triggerSearch(); |
| 111 | m_ui->searchEdit->setFocus(); |
| 112 | } |
| 113 | |
| 114 | auto ResourcePage::eventFilter(QObject* watched, QEvent* event) -> bool |
| 115 | { |
nothing calls this directly
no test coverage detected