Changeset View
Changeset View
Standalone View
Standalone View
src/utils/katebookmarks.cpp
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | 61 | { | |||
---|---|---|---|---|---|
83 | ac->addAction(QStringLiteral("bookmarks_previous"), m_goPrevious); | 83 | ac->addAction(QStringLiteral("bookmarks_previous"), m_goPrevious); | ||
84 | m_goPrevious->setIcon(QIcon::fromTheme(QStringLiteral("go-up-search"))); | 84 | m_goPrevious->setIcon(QIcon::fromTheme(QStringLiteral("go-up-search"))); | ||
85 | ac->setDefaultShortcut(m_goPrevious, Qt::ALT + Qt::Key_PageUp); | 85 | ac->setDefaultShortcut(m_goPrevious, Qt::ALT + Qt::Key_PageUp); | ||
86 | m_goPrevious->setWhatsThis(i18n("Go to the previous bookmark.")); | 86 | m_goPrevious->setWhatsThis(i18n("Go to the previous bookmark.")); | ||
87 | connect(m_goPrevious, SIGNAL(triggered()), this, SLOT(goPrevious())); | 87 | connect(m_goPrevious, SIGNAL(triggered()), this, SLOT(goPrevious())); | ||
88 | 88 | | |||
89 | KActionMenu *actionMenu = new KActionMenu(i18n("&Bookmarks"), this); | 89 | KActionMenu *actionMenu = new KActionMenu(i18n("&Bookmarks"), this); | ||
90 | ac->addAction(QStringLiteral("bookmarks"), actionMenu); | 90 | ac->addAction(QStringLiteral("bookmarks"), actionMenu); | ||
91 | actionMenu->setDelayed(false); | ||||
91 | m_bookmarksMenu = actionMenu->menu(); | 92 | m_bookmarksMenu = actionMenu->menu(); | ||
92 | 93 | | |||
93 | connect(m_bookmarksMenu, SIGNAL(aboutToShow()), this, SLOT(bookmarkMenuAboutToShow())); | 94 | connect(m_bookmarksMenu, SIGNAL(aboutToShow()), this, SLOT(bookmarkMenuAboutToShow())); | ||
94 | 95 | | |||
95 | marksChanged(); | 96 | marksChanged(); | ||
96 | 97 | | |||
97 | // Always want the actions with shortcuts plugged into something so their shortcuts can work | 98 | // Always want the actions with shortcuts plugged into something so their shortcuts can work | ||
98 | m_view->addAction(m_bookmarkToggle); | 99 | m_view->addAction(m_bookmarkToggle); | ||
▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines |