aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-04 17:53:52 +0200
committerOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-04 17:53:52 +0200
commit5fb1863497f1d02ea2f9eb1ad6c73e652d19d59f (patch)
tree2156a53fef826d4af13db8f26c734d8771805f13 /tests
parent795bf87a2e1e9d362a8ff0f55628021410964f3e (diff)
downloadqmenumodel-5fb1863497f1d02ea2f9eb1ad6c73e652d19d59f.tar.gz
qmenumodel-5fb1863497f1d02ea2f9eb1ad6c73e652d19d59f.tar.bz2
qmenumodel-5fb1863497f1d02ea2f9eb1ad6c73e652d19d59f.zip
Fix variant conversion on 32-bits platforms.
Diffstat (limited to 'tests')
-rw-r--r--tests/client/modeltest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/client/modeltest.cpp b/tests/client/modeltest.cpp
index b1f2090..9f6ee76 100644
--- a/tests/client/modeltest.cpp
+++ b/tests/client/modeltest.cpp
@@ -185,12 +185,12 @@ private Q_SLOTS:
// Int64
v = extra["int64"];
- QCOMPARE(v.typeName(), "long");
+ QCOMPARE(v.type(), QVariant::LongLong);
QCOMPARE(v.value<long>(), (long) -42);
// UInt64
v = extra["uint64"];
- QCOMPARE(v.typeName(), "ulong");
+ QCOMPARE(v.type(), QVariant::ULongLong);
QCOMPARE(v.value<ulong>(), (ulong) 42);
// Double