load(qttest_p4)
TEMPLATE = app
TARGET = tst_creation
-QT += declarative
+QT += declarative qtquick1
macx:CONFIG -= app_bundle
SOURCES += tst_creation.cpp
} else {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
+
+QT += core-private gui-private declarative-private qtquick1-private
#include <QGraphicsItem>
#include <QDeclarativeItem>
#include <QDeclarativeContext>
-#include <private/qdeclarativetextinput_p.h>
+#include <QtQuick1/private/qdeclarativetextinput_p.h>
#include <private/qobject_p.h>
#ifdef Q_OS_SYMBIAN
qmlRegisterType<TestType>("Qt.test", 1, 0, "TestType");
//get rid of initialization effects
- QDeclarativeTextInput te;
+ QDeclarative1TextInput te;
}
inline QUrl TEST_FILE(const QString &filename)
void tst_creation::qobject_qmltype()
{
- QDeclarativeType *t = QDeclarativeMetaType::qmlType("Qt/QtObject", 4, 7);
+ QDeclarativeType *t = QDeclarativeMetaType::qmlType("QtQuick/QtObject", 2, 0);
QBENCHMARK {
QObject *obj = t->create();
void tst_creation::elements()
{
QFETCH(QByteArray, type);
- QDeclarativeType *t = QDeclarativeMetaType::qmlType(type, 4, 7);
+ QDeclarativeType *t = QDeclarativeMetaType::qmlType(type, 2, 0);
if (!t || !t->isCreatable())
QSKIP("Non-creatable type", SkipSingle);