remove duplicate proggress bar

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-05-30 11:49:09 +03:00
parent 7fed5e9173
commit 8704cd8402
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
2 changed files with 2 additions and 20 deletions

View file

@ -67,18 +67,13 @@ ResourcePage::ResourcePage(ResourceDownloadDialog* parent, BaseInstance& base_in
connect(&m_search_timer, &QTimer::timeout, this, &ResourcePage::triggerSearch); connect(&m_search_timer, &QTimer::timeout, this, &ResourcePage::triggerSearch);
// hide both progress bars to prevent weird artifact // hide progress bar to prevent weird artifact
m_ui->fetchProgress->hide();
m_fetch_progress.hide(); m_fetch_progress.hide();
m_fetch_progress.hideIfInactive(true); m_fetch_progress.hideIfInactive(true);
m_fetch_progress.setFixedHeight(24); m_fetch_progress.setFixedHeight(24);
m_fetch_progress.progressFormat(""); m_fetch_progress.progressFormat("");
auto old = layout()->replaceWidget(m_ui->fetchProgress, &m_fetch_progress); m_ui->verticalLayout->insertWidget(1, &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->setItemDelegate(new ProjectItemDelegate(this));
m_ui->packView->installEventFilter(this); m_ui->packView->installEventFilter(this);

View file

@ -25,13 +25,6 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="ProgressWidget" name="fetchProgress" native="true">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<item> <item>
<widget class="QSplitter" name="splitter"> <widget class="QSplitter" name="splitter">
<property name="orientation"> <property name="orientation">
@ -96,12 +89,6 @@
<extends>QTextBrowser</extends> <extends>QTextBrowser</extends>
<header>ui/widgets/ProjectDescriptionPage.h</header> <header>ui/widgets/ProjectDescriptionPage.h</header>
</customwidget> </customwidget>
<customwidget>
<class>ProgressWidget</class>
<extends>QWidget</extends>
<header>ui/widgets/ProgressWidget.h</header>
<container>1</container>
</customwidget>
</customwidgets> </customwidgets>
<tabstops> <tabstops>
<tabstop>packView</tabstop> <tabstop>packView</tabstop>