diff options
author | hjk <hjk@qt.io> | 2019-05-27 13:32:20 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-05-27 12:33:29 +0000 |
commit | 19e1cf1520c313f0dbecac649b8f1270acfbe2d3 (patch) | |
tree | 21784605725cba8f809c5fbac5e431cc91d9812f /src/plugins/qmljstools | |
parent | f7d224bf58894ea4f4b5df0abd28abec46964ded (diff) | |
download | qt-creator-19e1cf1520c313f0dbecac649b8f1270acfbe2d3.tar.gz |
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>
Diffstat (limited to 'src/plugins/qmljstools')
-rw-r--r-- | src/plugins/qmljstools/qmljsfunctionfilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmljstools/qmljsfunctionfilter.cpp b/src/plugins/qmljstools/qmljsfunctionfilter.cpp index e13dd041d4..324f4f7559 100644 --- a/src/plugins/qmljstools/qmljsfunctionfilter.cpp +++ b/src/plugins/qmljstools/qmljsfunctionfilter.cpp @@ -79,7 +79,7 @@ QList<Core::LocatorFilterEntry> FunctionFilter::matchesFor( const QRegularExpressionMatch match = regexp.match(info.symbolName); if (match.hasMatch()) { - QVariant id = qVariantFromValue(info); + QVariant id = QVariant::fromValue(info); Core::LocatorFilterEntry filterEntry(this, info.displayName, id/*, info.icon*/); filterEntry.extraInfo = info.extraInfo; filterEntry.highlightInfo = highlightInfo(match); |