Make Bookmarks item work properly as a toolbar item

- Make its menu open on click, not click-and-hold
- Give it a proper icon

BUG: 408346
FIXED-IN: 19.08.0
This commit is contained in:
Nate Graham 2019-06-07 09:50:53 -06:00
parent 10d8a57315
commit 1bcd478422

View file

@ -1275,6 +1275,9 @@ void DolphinMainWindow::setupActions()
// setup 'Bookmarks' menu
KActionMenu *bookmarkMenu = new KActionMenu(i18nc("@title:menu", "&Bookmarks"), this);
bookmarkMenu->setIcon(QIcon::fromTheme(QStringLiteral("bookmarks")));
// Make the toolbar button version work properly on click
bookmarkMenu->setDelayed(false);
m_bookmarkHandler = new DolphinBookmarkHandler(this, actionCollection(), bookmarkMenu->menu(), this);
actionCollection()->addAction(QStringLiteral("bookmarks"), bookmarkMenu);