QmlDesigner: Fix compilation of core tests

Patch by Marco Bubke.
This commit is contained in:
Kai Koehne
2010-03-30 14:29:25 +02:00
parent 387f906b3b
commit e45699d1f2
3 changed files with 21 additions and 11 deletions

View File

@@ -135,6 +135,9 @@ public:
static void registerDeclarativeTypes();
#ifdef QT_BUILD_INTERNAL
QObject* testHandle() const;
#endif
private: // functions
NodeInstance(const QSharedPointer<Internal::ObjectNodeInstance> &abstractInstance);

View File

@@ -622,4 +622,11 @@ void NodeInstance::registerDeclarativeTypes()
qmlRegisterType<QmlDesigner::Internal::QmlPropertyChangesObject>();
}
#ifdef QT_BUILD_INTERNAL
QObject* NodeInstance::testHandle() const
{
return internalObject();
}
#endif
} // namespace QmlDesigner