chore: silence some deprecation warnings in Qt 6.8 (#5529)

This commit is contained in:
nerix
2024-08-04 11:23:29 +02:00
committed by GitHub
parent aed55ac1ba
commit 3257da1855
9 changed files with 55 additions and 30 deletions
@@ -15,7 +15,11 @@ void ColorItemDelegate::paint(QPainter *painter,
{
auto data = index.data(Qt::DecorationRole);
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
if (data.typeId() != QMetaType::QColor)
#else
if (data.type() != QVariant::Color)
#endif
{
return QStyledItemDelegate::paint(painter, option, index);
}