mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
[Bookmarks] Force icons visible in bookmarks menu
For example, Gnome3 has icons hidden in menu by default Closes #1215
This commit is contained in:
parent
afae00e4a2
commit
77e8afb5ec
@ -306,6 +306,7 @@ void BookmarksTools::addFolderToMenu(QObject* receiver, Menu* menu, BookmarkItem
|
||||
|
||||
QAction* act = menu->addMenu(m);
|
||||
act->setData(QVariant::fromValue<void*>(static_cast<void*>(folder)));
|
||||
act->setIconVisibleInMenu(true);
|
||||
|
||||
foreach (BookmarkItem* child, folder->children()) {
|
||||
addActionToMenu(receiver, m, child);
|
||||
@ -324,6 +325,7 @@ void BookmarksTools::addUrlToMenu(QObject* receiver, Menu* menu, BookmarkItem* b
|
||||
|
||||
Action* act = new Action(bookmark->icon(), bookmark->title());
|
||||
act->setData(QVariant::fromValue<void*>(static_cast<void*>(bookmark)));
|
||||
act->setIconVisibleInMenu(true);
|
||||
|
||||
QObject::connect(act, SIGNAL(triggered()), receiver, SLOT(bookmarkActivated()));
|
||||
QObject::connect(act, SIGNAL(ctrlTriggered()), receiver, SLOT(bookmarkCtrlActivated()));
|
||||
|
Loading…
Reference in New Issue
Block a user