aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-02 11:39:07 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-02 11:45:51 +0100
commit4e10a6769fdcaa711dac34dd5dd326c83a27c6bd (patch)
tree372eff9f11708b8e52cd6449e7c06e7b8b1c0561 /src/quicktemplates2
parentcfaf1d576fd1f44ea3e424af85dfbaa641d2665d (diff)
Fix deprecation warnings related to QMetaType
Change-Id: I4e6c1b03915c33f6225c0fb7f86e6acb7715cd4d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2')
-rw-r--r--src/quicktemplates2/qquickaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickaction.cpp b/src/quicktemplates2/qquickaction.cpp
index 0dab3b97..365c4bee 100644
--- a/src/quicktemplates2/qquickaction.cpp
+++ b/src/quicktemplates2/qquickaction.cpp
@@ -118,7 +118,7 @@ QT_BEGIN_NAMESPACE
#if QT_CONFIG(shortcut)
static QKeySequence variantToKeySequence(const QVariant &var)
{
- if (var.type() == QVariant::Int)
+ if (var.metaType().id() == QMetaType::Int)
return QKeySequence(static_cast<QKeySequence::StandardKey>(var.toInt()));
return QKeySequence::fromString(var.toString());
}