forked from qt-creator/qt-creator
QmlDesigner: Move implementation code in the node instances
updateDirtyNodeRecursive and renderPreviewImage belongs to quick image and not in the node instance server. Change-Id: I629b89c748036c0614e78bcfa0c837cb16ca6374 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
f021ec50cd
commit
359ef53280
@@ -122,6 +122,11 @@ QImage ServerNodeInstance::renderImage() const
|
||||
return m_nodeInstance->renderImage();
|
||||
}
|
||||
|
||||
QImage ServerNodeInstance::renderPreviewImage(const QSize &previewImageSize) const
|
||||
{
|
||||
return m_nodeInstance->renderPreviewImage(previewImageSize);
|
||||
}
|
||||
|
||||
bool ServerNodeInstance::isRootNodeInstance() const
|
||||
{
|
||||
return isValid() && m_nodeInstance->isRootNodeInstance();
|
||||
@@ -153,6 +158,16 @@ void ServerNodeInstance::setNodeSource(const QString &source)
|
||||
m_nodeInstance->setNodeSource(source);
|
||||
}
|
||||
|
||||
bool ServerNodeInstance::holdsQuickItem() const
|
||||
{
|
||||
return m_nodeInstance->isQuickItem();
|
||||
}
|
||||
|
||||
void ServerNodeInstance::updateDirtyNodeRecursive()
|
||||
{
|
||||
m_nodeInstance->updateDirtyNodeRecursive();
|
||||
}
|
||||
|
||||
bool ServerNodeInstance::isSubclassOf(const QString &superTypeName) const
|
||||
{
|
||||
return isSubclassOf(internalObject(), superTypeName.toUtf8());
|
||||
@@ -552,13 +567,6 @@ QObject *ServerNodeInstance::internalObject() const
|
||||
return m_nodeInstance->object();
|
||||
}
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
|
||||
QQuickItem *ServerNodeInstance::internalSGItem() const
|
||||
{
|
||||
return qobject_cast<QQuickItem*>(internalObject());
|
||||
}
|
||||
#endif
|
||||
|
||||
void ServerNodeInstance::activateState()
|
||||
{
|
||||
m_nodeInstance->activateState();
|
||||
|
||||
Reference in New Issue
Block a user