Commit cafc2a6c authored by Marco Bubke's avatar Marco Bubke

QmlDesigner.NodeInstances: Add sgitem getter to the server node instance

Change-Id: I58baee2a8e59f2cef8add0472a3ee0c2a13fd59a
Reviewed-on: http://codereview.qt.nokia.com/4005Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 432a3628
......@@ -548,6 +548,11 @@ QObject *ServerNodeInstance::internalObject() const
return m_nodeInstance->object();
}
QSGItem *ServerNodeInstance::internalSGItem() const
{
return qobject_cast<QSGItem*>(internalObject());
}
void ServerNodeInstance::activateState()
{
m_nodeInstance->activateState();
......
......@@ -46,6 +46,7 @@ class QStyleOptionGraphicsItem;
class QDeclarativeContext;
class QGraphicsItem;
class QGraphicsTransform;
class QSGItem;
QT_END_NAMESPACE
namespace QmlDesigner {
......@@ -198,6 +199,7 @@ private: // functions
QObject *internalObject() const; // should be not used outside of the nodeinstances!!!!
QSGItem *internalSGItem() const;
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