QmlDesigner: Add arrow to MenuItem for sub menus

Task-number: QDS-7867
Change-Id: Ia2c9dcf4534a5ccc2525f36720acb2d7f971abe4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Henning Gruendl
2022-10-06 12:50:07 +02:00
committed by Henning Gründl
parent 1462258939
commit a7ceb64895

View File

@@ -70,6 +70,17 @@ T.MenuItem {
}
}
arrow: T.Label {
id: arrow
x: parent.width - (StudioTheme.Values.height + arrow.width) / 2
y: (parent.height - arrow.height) / 2
visible: control.subMenu
text: StudioTheme.Constants.startNode
color: StudioTheme.Values.themeTextColor
font.pixelSize: 8
font.family: StudioTheme.Constants.iconFont.family
}
background: Rectangle {
implicitWidth: textLabel.implicitWidth + control.labelSpacing + shortcutLabel.implicitWidth
+ control.leftPadding + control.rightPadding