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>
#include <qvector4d.h>
#include <qquaternion.h>
#include <qdebug.h>
+#include <qjsondocument.h>
+
#include <limits.h>
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() );