summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkstreeitem.hpp
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-09-22 22:07:28 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-09-23 09:58:14 +0300
commit52c7c9c032d547b957808d07f53f58ed247f924c (patch)
treefcc510b06bfc1d5012689f2596758624f2b8db41 /src/bookmarks/bookmarkstreeitem.hpp
parentBookmarksToolBar: elide action title (diff)
downloadrekonq-52c7c9c032d547b957808d07f53f58ed247f924c.tar.xz
Add validate_xml script
Diffstat (limited to 'src/bookmarks/bookmarkstreeitem.hpp')
-rw-r--r--src/bookmarks/bookmarkstreeitem.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bookmarks/bookmarkstreeitem.hpp b/src/bookmarks/bookmarkstreeitem.hpp
index caed1ecb..91d4ab2a 100644
--- a/src/bookmarks/bookmarkstreeitem.hpp
+++ b/src/bookmarks/bookmarkstreeitem.hpp
@@ -40,7 +40,9 @@ public:
template <typename T> [[nodiscard]] QAction *action(T *sender, rekonq::OpenType type) const
{
- auto *action = new QAction(m_data.title, sender);
+ auto *action = new QAction(m_icon, m_data.title, sender);
+ action->setIconVisibleInMenu(true);
+ action->setToolTip(m_data.description.isEmpty() ? m_data.title : m_data.description);
QObject::connect(action, &QAction::triggered, sender,
[this, sender, type]() { emit sender->loadUrl(m_data.href, type); });
return action;