forked from qt-creator/qt-creator
QmlDesigner: Fix MenuSeparator not displayed
StudioControls.MenuSeparator isn't displayed as setting width/height is wrong. Instead use the implicit version of the properties. Change-Id: I44a269e10b1ef6507009ecffb6b8e90736d24f45 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
1b688b51fd
commit
3256888294
@@ -34,12 +34,11 @@ T.MenuSeparator {
|
|||||||
implicitContentWidth + leftPadding + rightPadding)
|
implicitContentWidth + leftPadding + rightPadding)
|
||||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||||
implicitContentHeight + topPadding + bottomPadding)
|
implicitContentHeight + topPadding + bottomPadding)
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
contentItem: Rectangle {
|
contentItem: Rectangle {
|
||||||
width: control.parent.width
|
implicitWidth: control.parent.width
|
||||||
height: StudioTheme.Values.border
|
implicitHeight: StudioTheme.Values.border
|
||||||
color: StudioTheme.Values.themeControlOutline
|
color: StudioTheme.Values.themeControlOutline
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user