From 68573c80c911c9eefc175814ca19460f4e877a57 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Mon, 3 Feb 2025 11:39:18 +0100 Subject: [PATCH] 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 --- .../imports/StudioControls/ActionIndicator.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ActionIndicator.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ActionIndicator.qml index 96a28d6d5c8..8f5a85734a1 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ActionIndicator.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/ActionIndicator.qml @@ -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