summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-07-24 12:01:13 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-25 00:48:24 +0200
commit80cd5d2017342bc7674367fa418349f3f1eef798 (patch)
treeab04c928633afd5f63d1041d225dfdd3fd510f62 /tests
parentdec9666dd4e6dc86d6d5a2520f0900c8ed508517 (diff)
Use a large core type for the QVariant::setValue test.
The type needs to be large enough that QVariantIntegrator<T>::CanUseInternalSpace is true. Change-Id: I311c44bedfebd946e41639975df206c27b6d55ca Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp b/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp
index 3a0b93640f..d8c6e25dcc 100644
--- a/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp
+++ b/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp
@@ -64,6 +64,8 @@
#include <qvector4d.h>
#include <qquaternion.h>
#include <qdebug.h>
+#include <qjsondocument.h>
+
#include <limits.h>
@@ -2990,8 +2992,8 @@ void tst_QVariant::toIntFromDouble() const
void tst_QVariant::setValue()
{
- QTransform t; //we just take a value so that we're sure that it will be shared
- QVariant v1 = t;
+ QJsonDocument t; //we just take a value so that we're sure that it will be shared
+ QVariant v1 = QVariant::fromValue(t);
QVERIFY( v1.isDetached() );
QVariant v2 = v1;
QVERIFY( !v1.isDetached() );