From f03d7b217c290936ef08a31ba3fd8c3f12dcd84c Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 24 May 2022 19:24:03 +0200 Subject: [PATCH] Temporarily remove CCSProgressDelegate It is broken on Qt6. --- src/model/CCSModel.cpp | 2 -- src/widgets/CCSWidget.cpp | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/model/CCSModel.cpp b/src/model/CCSModel.cpp index b2efbbf..c969995 100644 --- a/src/model/CCSModel.cpp +++ b/src/model/CCSModel.cpp @@ -56,10 +56,8 @@ QVariant CCSModel::data(const QModelIndex &index, int role) const return entry->title; case Author: return entry->author; -#ifdef Q_OS_MACOS case Progress: return QString("%1/%2 XMR").arg(entry->raised_amount).arg(entry->target_amount); -#endif default: return QVariant(); } diff --git a/src/widgets/CCSWidget.cpp b/src/widgets/CCSWidget.cpp index e1db50e..0447fd4 100644 --- a/src/widgets/CCSWidget.cpp +++ b/src/widgets/CCSWidget.cpp @@ -17,11 +17,7 @@ CCSWidget::CCSWidget(QWidget *parent) , m_contextMenu(new QMenu(this)) { ui->setupUi(this); - auto progressDelegate = new CCSProgressDelegate(m_model, this); ui->tableView->setModel(m_model); -#ifndef Q_OS_MACOS - ui->tableView->setItemDelegateForColumn(2, progressDelegate); -#endif this->setupTable(); m_contextMenu->addAction("View proposal", this, &CCSWidget::linkClicked);