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>
This commit is contained in:
committed by
Henning Gründl
parent
0c5d7ce4dc
commit
68573c80c9
@@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Templates as T
|
import QtQuick.Templates as T
|
||||||
import StudioTheme 1.0 as StudioTheme
|
import StudioTheme as StudioTheme
|
||||||
|
|
||||||
Rectangle {
|
Item {
|
||||||
id: control
|
id: control
|
||||||
|
|
||||||
property StudioTheme.ControlStyle style: StudioTheme.Values.controlStyle
|
property StudioTheme.ControlStyle style: StudioTheme.Values.controlStyle
|
||||||
@@ -18,8 +18,6 @@ Rectangle {
|
|||||||
property bool pressed: false
|
property bool pressed: false
|
||||||
property bool forceVisible: false
|
property bool forceVisible: false
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
implicitWidth: control.style.actionIndicatorSize.width
|
implicitWidth: control.style.actionIndicatorSize.width
|
||||||
implicitHeight: control.style.actionIndicatorSize.height
|
implicitHeight: control.style.actionIndicatorSize.height
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user