Commit 842958f2 authored by Julius Künzel's avatar Julius Künzel 💬
Browse files

Port deprecated QVariant::canConvert

parent 5fd38e5e
......@@ -1023,7 +1023,7 @@ void KeyframeModel::parseRotoProperty(const QString &prop)
QJsonParseError jsonError;
QJsonDocument doc = QJsonDocument::fromJson(prop.toLatin1(), &jsonError);
QVariant data = doc.toVariant();
if (data.canConvert(QVariant::Map)) {
if (data.canConvert(QMetaType::QVariantMap)) {
QMap<QString, QVariant> map = data.toMap();
QMap<QString, QVariant>::const_iterator i = map.constBegin();
while (i != map.constEnd()) {
......
......@@ -68,7 +68,7 @@ QList<BPoint> RotoHelper::getPoints(const QVariant &value, const QSize frame)
QList<QVariant> data = value.toList();
// skip tracking flag
if (data.count() && data.at(0).canConvert(QVariant::String)) {
if (data.count() && data.at(0).canConvert(QMetaType::QString)) {
data.removeFirst();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment