Temporarily remove CCSProgressDelegate

It is broken on Qt6.
This commit is contained in:
tobtoht 2022-05-24 19:24:03 +02:00
parent 3dc546680c
commit f03d7b217c
2 changed files with 0 additions and 6 deletions

View file

@ -56,10 +56,8 @@ QVariant CCSModel::data(const QModelIndex &index, int role) const
return entry->title; return entry->title;
case Author: case Author:
return entry->author; return entry->author;
#ifdef Q_OS_MACOS
case Progress: case Progress:
return QString("%1/%2 XMR").arg(entry->raised_amount).arg(entry->target_amount); return QString("%1/%2 XMR").arg(entry->raised_amount).arg(entry->target_amount);
#endif
default: default:
return QVariant(); return QVariant();
} }

View file

@ -17,11 +17,7 @@ CCSWidget::CCSWidget(QWidget *parent)
, m_contextMenu(new QMenu(this)) , m_contextMenu(new QMenu(this))
{ {
ui->setupUi(this); ui->setupUi(this);
auto progressDelegate = new CCSProgressDelegate(m_model, this);
ui->tableView->setModel(m_model); ui->tableView->setModel(m_model);
#ifndef Q_OS_MACOS
ui->tableView->setItemDelegateForColumn(2, progressDelegate);
#endif
this->setupTable(); this->setupTable();
m_contextMenu->addAction("View proposal", this, &CCSWidget::linkClicked); m_contextMenu->addAction("View proposal", this, &CCSWidget::linkClicked);