forked from qt-creator/qt-creator
qmlpuppet: Fix build with Qt 4.7.4.
Change-Id: I74f0784d76f8fa7137db22a251deaab9d99481dd Reviewed-on: http://codereview.qt.nokia.com/4040 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -54,7 +54,9 @@
|
||||
#include <QSet>
|
||||
#include <QtDebug>
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
|
||||
#include <QSGItem>
|
||||
#endif
|
||||
|
||||
#include <QtDeclarative/QDeclarativeEngine>
|
||||
|
||||
@@ -550,10 +552,12 @@ QObject *ServerNodeInstance::internalObject() const
|
||||
return m_nodeInstance->object();
|
||||
}
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
|
||||
QSGItem *ServerNodeInstance::internalSGItem() const
|
||||
{
|
||||
return qobject_cast<QSGItem*>(internalObject());
|
||||
}
|
||||
#endif
|
||||
|
||||
void ServerNodeInstance::activateState()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user