diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-04-26 12:10:27 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-04-27 10:24:13 +0200 |
commit | 5970738c2bd4eb811b42e91f8840a20602db4383 (patch) | |
tree | a8fc6e04c77d532b78f72bdd792f80e60b18b4f7 /src | |
parent | 94981ddd1e148db9b6130181543c8113e21e0721 (diff) | |
download | qtwayland-5970738c2bd4eb811b42e91f8840a20602db4383.tar.gz |
Fix deprecated warning
Use QMetaType instead of QVariant types
Pick-to: 6.3
Change-Id: I92248cc5eff82c1dc20f7cad11bdeeccc64a5605
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/compositor/extensions/qwaylandqttextinputmethod.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/extensions/qwaylandqttextinputmethod.cpp b/src/compositor/extensions/qwaylandqttextinputmethod.cpp index 00d9da13..e7667da6 100644 --- a/src/compositor/extensions/qwaylandqttextinputmethod.cpp +++ b/src/compositor/extensions/qwaylandqttextinputmethod.cpp @@ -306,7 +306,7 @@ void QWaylandQtTextInputMethod::sendInputMethodEvent(QInputMethodEvent *event) attribute.type, attribute.start, attribute.length, - attribute.value.typeId() == QVariant::Color ? attribute.value.value<QColor>().name() : QString()); + attribute.value.typeId() == QMetaType::QColor ? attribute.value.value<QColor>().name() : QString()); break; case QInputMethodEvent::Language: // ### What is the type of value? Is it string? Q_FALLTHROUGH(); |