forked from qt-creator/qt-creator
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>
(cherry picked from commit 68573c80c9
)
This commit is contained in:
committed by
Henning Gründl
parent
aa80940076
commit
04f1512194
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user