path: root/src/gui
diff options
authorJędrzej Nowacki <>2012-02-10 12:21:25 +0100
committerQt by Nokia <>2012-02-27 12:47:52 +0100
commit51f2a0c3318549a6f9388e3d4920eb23a60f8b7b (patch)
treef25f66a07b4d4320978909aa069c5251d11145ca /src/gui
parent1a49a529ee3e721ea8736bd0c34a0086a2dbad4d (diff)
Cleanup usage of QVariant::Type.
QVariant::Type is marked as obsolete. It is not possible to get rid of it completely, in a source compatible way, but at least we can remove it safely from a method arguments list. Change-Id: I26b58099bfa6d32f3a583a8ae0047f0bb36bcd0d Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'src/gui')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qguivariant.cpp b/src/gui/kernel/qguivariant.cpp
index 2ebfb32bc3..0492e48bee 100644
--- a/src/gui/kernel/qguivariant.cpp
+++ b/src/gui/kernel/qguivariant.cpp
@@ -221,7 +221,7 @@ static bool compare(const QVariant::Private *a, const QVariant::Private *b)
return QMetaTypeSwitcher::switcher<bool>(comparator, a->type, 0);
-static bool convert(const QVariant::Private *d, QVariant::Type t,
+static bool convert(const QVariant::Private *d, int t,
void *result, bool *ok)
switch (t) {