QmlDesigner: Replace Rectangle with Item

Currently the root item of the ActionIndicator is a transparent
Rectangle. Replace Rectangle with Item in the ActionIndicator component
to potentially increase rendering performance.

Change-Id: I09d2d53f8407eeef85ab5adb838b491609701507
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2025-02-03 11:39:18 +01:00
committed by Henning Gründl
parent 0c5d7ce4dc
commit 68573c80c9

View File

@@ -3,9 +3,9 @@
import QtQuick
import QtQuick.Templates as T
import StudioTheme 1.0 as StudioTheme
import StudioTheme as StudioTheme
Rectangle {
Item {
id: control
property StudioTheme.ControlStyle style: StudioTheme.Values.controlStyle
@@ -18,8 +18,6 @@ Rectangle {
property bool pressed: false
property bool forceVisible: false
color: "transparent"
implicitWidth: control.style.actionIndicatorSize.width
implicitHeight: control.style.actionIndicatorSize.height