forked from qt-creator/qt-creator
QmlDesigner: Fix shape rendering in 2D view
Fix shape rendering in 2D view by calling classBegin() when creating
object node instances. This will set the completed flag in QQuickPath to
false. Otherwise it will be true which will lead to adding path elements
twice to the internal _pathCurves member due to QtDS calling onCompleted
manually at a later step.
Task-number: QDS-14846
Change-Id: I9d004f66a29f5fc8646fa0e7d15673ded8eae3ec
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
(cherry picked from commit e0bd1e0ca9
)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
committed by
Thomas Hartmann
parent
fe6bbb6303
commit
08c2c6a1e1
@@ -753,6 +753,10 @@ ObjectNodeInstance::Pointer ObjectNodeInstance::create(QObject *object)
|
||||
{
|
||||
Pointer instance(new ObjectNodeInstance(object));
|
||||
|
||||
QQmlParserStatus *qmlParserStatus = dynamic_cast<QQmlParserStatus *>(object);
|
||||
if (qmlParserStatus)
|
||||
qmlParserStatus->classBegin();
|
||||
|
||||
instance->populateResetHashes();
|
||||
|
||||
return instance;
|
||||
|
Reference in New Issue
Block a user