From 106ed49baecc60dbdf4844ed684df750e5caf3aa Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Sat, 26 Dec 2020 20:58:06 -0500 Subject: removed setUpdateDelay(false) calls, it's the default FilterWidget for downloads tab --- src/downloadlistwidget.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/downloadlistwidget.h') diff --git a/src/downloadlistwidget.h b/src/downloadlistwidget.h index 784bd275..64e1a6e8 100644 --- a/src/downloadlistwidget.h +++ b/src/downloadlistwidget.h @@ -22,7 +22,6 @@ along with Mod Organizer. If not, see . #include "downloadmanager.h" #include "downloadlist.h" -#include "downloadlistsortproxy.h" #include #include #include @@ -36,19 +35,21 @@ namespace Ui { class DownloadListWidget; } +class DownloadListWidget; + class DownloadProgressDelegate : public QStyledItemDelegate { Q_OBJECT public: - DownloadProgressDelegate(DownloadManager *manager, DownloadListSortProxy *sortProxy, QWidget *parent = 0) : QStyledItemDelegate(parent), m_Manager(manager), m_SortProxy(sortProxy) {} + DownloadProgressDelegate(DownloadManager* manager, DownloadListWidget* list); void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; private: - DownloadManager *m_Manager; - DownloadListSortProxy *m_SortProxy; + DownloadManager* m_Manager; + DownloadListWidget* m_List; }; class DownloadListHeader : public QHeaderView -- cgit v1.3.1