forked from qt-creator/qt-creator
QmlDesigner: Fix the bug for overriding Final property
Task-number: QDS-11301 Change-Id: I11a9941a344f7091405bd8e4cd5de10bf66c6c2e Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -54,16 +54,16 @@ Item {
|
||||
Text {
|
||||
id: moveTool
|
||||
|
||||
property StudioTheme.ControlStyle style: StudioTheme.Values.viewBarButtonStyle
|
||||
property StudioTheme.ControlStyle textStyle: StudioTheme.Values.viewBarButtonStyle
|
||||
|
||||
Layout.preferredWidth: moveTool.style.squareControlSize.width
|
||||
Layout.preferredWidth: moveTool.textStyle.squareControlSize.width
|
||||
Layout.preferredHeight: nameHolder.height
|
||||
Layout.leftMargin: 12
|
||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||
|
||||
text: StudioTheme.Constants.dragmarks
|
||||
font.family: StudioTheme.Constants.iconFont.family
|
||||
font.pixelSize: moveTool.style.baseIconFontSize
|
||||
font.pixelSize: moveTool.textStyle.baseIconFontSize
|
||||
color: root.textColor
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
@@ -74,9 +74,9 @@ Item {
|
||||
Text {
|
||||
id: expandButton
|
||||
|
||||
property StudioTheme.ControlStyle style: StudioTheme.Values.viewBarButtonStyle
|
||||
property StudioTheme.ControlStyle textStyle: StudioTheme.Values.viewBarButtonStyle
|
||||
|
||||
Layout.preferredWidth: expandButton.style.squareControlSize.width
|
||||
Layout.preferredWidth: expandButton.textStyle.squareControlSize.width
|
||||
Layout.preferredHeight: nameHolder.height
|
||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||
|
||||
|
@@ -9,11 +9,11 @@ import StudioTheme 1.0 as StudioTheme
|
||||
T.Label {
|
||||
id: control
|
||||
|
||||
property StudioTheme.ControlStyle style: StudioTheme.Values.controlStyle
|
||||
property StudioTheme.ControlStyle controlStyle: StudioTheme.Values.controlStyle
|
||||
|
||||
width: Math.max(Math.min(240, parent.width - 220), 90)
|
||||
color: control.style.text.idle
|
||||
font.pixelSize: control.style.baseFontSize
|
||||
color: control.controlStyle.text.idle
|
||||
font.pixelSize: control.controlStyle.baseFontSize
|
||||
elide: Text.ElideRight
|
||||
|
||||
Layout.preferredWidth: width
|
||||
|
Reference in New Issue
Block a user