Commit 2da32199 authored by Christian Kamm's avatar Christian Kamm

qmlpuppet: Fix build with Qt 4.7.4.

Change-Id: I74f0784d76f8fa7137db22a251deaab9d99481dd
Reviewed-on: http://codereview.qt.nokia.com/4040Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent f1298e85
......@@ -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()
{
......
......@@ -46,7 +46,9 @@ class QStyleOptionGraphicsItem;
class QDeclarativeContext;
class QGraphicsItem;
class QGraphicsTransform;
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
class QSGItem;
#endif
QT_END_NAMESPACE
namespace QmlDesigner {
......@@ -199,7 +201,9 @@ private: // functions
QObject *internalObject() const; // should be not used outside of the nodeinstances!!!!
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
QSGItem *internalSGItem() const;
#endif
private: // variables
QSharedPointer<Internal::ObjectNodeInstance> m_nodeInstance;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment