#include <QtCore/qfileinfo.h>
#include <QtCore/qdir.h>
#include <QSignalSpy>
+#include <QFont>
#include <private/qqmlproperty_p.h>
#include <private/qqmlmetatype_p.h>
void scopedProperties();
+ void deepProperty();
+
private:
QQmlEngine engine;
QStringList defaultImportPathList;
QVERIFY(o->property("success").toBool());
}
+void tst_qqmllanguage::deepProperty()
+{
+ QQmlComponent component(&engine, testFile("deepProperty.qml"));
+ QScopedPointer<QObject> o(component.create());
+ QVERIFY(o != 0);
+ QFont font = qvariant_cast<QFont>(qvariant_cast<QObject*>(o->property("someObject"))->property("font"));
+ QCOMPARE(font.family(), QStringLiteral("test"));
+}
+
// Tests that the implicit import has lowest precedence, in the case where
// there are conflicting types and types only found in the local import.
// Tests that just check one (or the root) type are in ::importsOrder