forked from qt-creator/qt-creator
QmlDesigner: Fix compilation of core tests
Patch by Marco Bubke.
This commit is contained in:
@@ -135,6 +135,9 @@ public:
|
||||
|
||||
static void registerDeclarativeTypes();
|
||||
|
||||
#ifdef QT_BUILD_INTERNAL
|
||||
QObject* testHandle() const;
|
||||
#endif
|
||||
private: // functions
|
||||
NodeInstance(const QSharedPointer<Internal::ObjectNodeInstance> &abstractInstance);
|
||||
|
||||
|
||||
@@ -622,4 +622,11 @@ void NodeInstance::registerDeclarativeTypes()
|
||||
qmlRegisterType<QmlDesigner::Internal::QmlPropertyChangesObject>();
|
||||
}
|
||||
|
||||
#ifdef QT_BUILD_INTERNAL
|
||||
QObject* NodeInstance::testHandle() const
|
||||
{
|
||||
return internalObject();
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace QmlDesigner
|
||||
|
||||
Reference in New Issue
Block a user