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