QmlDesigner: Implement visibility for unified render path

If the item is set to invisible we set visible to false in
the render and preview puppets. This will have no effect on the
value in the property editor.

Changing the actual value of visible can have side-effects on
the rendering in some rare cases.

Task-number: QDS-4932
Change-Id: I5ce0925ebff8f5e4e64bc71fd5d33d6154b85f91
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
Thomas Hartmann
2021-08-24 12:36:58 +02:00
parent 90027cd298
commit 30827fe401
6 changed files with 38 additions and 0 deletions
@@ -106,6 +106,8 @@ public:
static bool unifiedRenderPath();
static bool unifiedRenderPathOrQt6();
void setHiddenInEditor(bool b) override;
protected:
explicit QuickItemNodeInstance(QQuickItem*);
QQuickItem *quickItem() const;
@@ -139,6 +141,7 @@ private: //variables
double m_y;
double m_width;
double m_height;
bool m_hidden = false;
static bool s_createEffectItem;
static bool s_unifiedRenderPath;
};