Merge branch 'master' into qt5
[toast/confclerk.git] / src / mvc / delegate.cpp
index ef7dc7ac1e4a608f3af2174d5c75e6aecf66db85..e6136598c41dfc9e46b3e297479d89cba7a84033 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();