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;
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();
}

View file

@ -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);