Merge branch 'master' into qt5
[toast/confclerk.git] / src / mvc / delegate.cpp
index ebf421111c32e4dbe010cb54e90c1d3c9be5672b..2d1f08524084873ea61ee03ad94879a50a826960 100644 (file)
@@ -237,7 +237,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();