Replace uses of qVariantFromValue with QVariant::fromValue

Deprecated in Qt 5.14, alternative has been around since Qt 4 at least.

Change-Id: I4e3a53c289088368609e0d0ce2405a832d311308
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2019-05-27 13:32:20 +02:00
parent f7d224bf58
commit 19e1cf1520
33 changed files with 39 additions and 39 deletions

View File

@@ -310,7 +310,7 @@ public:
item.path = scope.split(QLatin1String("::"), QString::SkipEmptyParts);
item.text = text;
item.icon = info->icon();
item.userData = qVariantFromValue(info);
item.userData = QVariant::fromValue(info);
resultItems << item;
}