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:
Christian Kamm
2011-09-01 09:17:27 +02:00
parent f1298e85ed
commit 2da3219909
2 changed files with 8 additions and 0 deletions

View File

@@ -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()
{