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

Method openedImpl

launcher/ui/pages/modplatform/ResourcePage.cpp:98–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void 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
114auto ResourcePage::eventFilter(QObject* watched, QEvent* event) -> bool
115{

Callers

nothing calls this directly

Calls 3

setVisibleMethod · 0.80
hideMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected