Add icons for the menus in the message context menu

In Qt6 we can now assign icons to menus, so let's add what's missing.
This commit is contained in:
Joshua Goins
2024-09-02 12:59:28 -04:00
parent e117cc0cfb
commit bff69e21ad

View File

@@ -155,6 +155,7 @@ Loader {
id: menuItem
visible: modelData.visible
title: modelData.text
icon: modelData.icon
Instantiator {
model: modelData.children
@@ -185,7 +186,7 @@ Loader {
QQC2.Menu {
id: webshortcutmenu
title: i18n("Search for '%1'", webshortcutmodel.trunkatedSearchText)
property bool isVisible: webshortcutmodel.enabled
icon.name: "search-symbolic"
property bool isVisible: webshortcutmodel.enabled && root.enableWebSearch
Component.onCompleted: {
webshortcutmenu.parent.visible = isVisible;