Now the application compiles for QT5.
[toast/confclerk.git] / src / mvc / delegate.cpp
index 5551be3e2b4c1395ffcf5114d0b9ebb0772a3b84..843720a2ac65c59c6e0e57c50d55b211f3108c84 100644 (file)
@@ -214,7 +214,7 @@ void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option, cons
                 option.rect.x()+SPACER,
                 option.rect.y()+option.rect.height()-fmBig.descent());
         painter->setFont(fontBig);
-        painter->drawText(titlePointF,qVariantValue<QString>(index.data()));
+        painter->drawText(titlePointF,index.data().value<QString>());
     }
 
     painter->restore();