remove search button

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2024-05-30 00:14:37 +03:00
parent 6d60a6f4e3
commit 469f051e30
9 changed files with 29 additions and 43 deletions

View File

@ -67,11 +67,18 @@ ResourcePage::ResourcePage(ResourceDownloadDialog* parent, BaseInstance& base_in
connect(&m_search_timer, &QTimer::timeout, this, &ResourcePage::triggerSearch);
// hide both progress bars to prevent weird artifact
m_ui->fetchProgress->hide();
m_fetch_progress.hide();
m_fetch_progress.hideIfInactive(true);
m_fetch_progress.setFixedHeight(24);
m_fetch_progress.progressFormat("");
layout()->replaceWidget(m_ui->fetchProgress, &m_fetch_progress);
auto old = layout()->replaceWidget(m_ui->fetchProgress, &m_fetch_progress);
// because we replaced the widget we also need to delete it
if (old) {
delete old;
}
m_ui->packView->setItemDelegate(new ProjectItemDelegate(this));
m_ui->packView->installEventFilter(this);