Changeset View
Changeset View
Standalone View
Standalone View
shell/textdocument.cpp
Show First 20 Lines • Show All 714 Lines • ▼ Show 20 Line(s) | 714 | foreach ( QAction* action, d->m_addedContextMenu->actions() ) { | |||
---|---|---|---|---|---|
715 | menu->removeAction(action); | 715 | menu->removeAction(action); | ||
716 | } | 716 | } | ||
717 | delete d->m_addedContextMenu; | 717 | delete d->m_addedContextMenu; | ||
718 | } | 718 | } | ||
719 | 719 | | |||
720 | d->m_addedContextMenu = new QMenu(); | 720 | d->m_addedContextMenu = new QMenu(); | ||
721 | 721 | | |||
722 | EditorContext c(v, v->cursorPosition()); | 722 | EditorContext c(v, v->cursorPosition()); | ||
723 | auto extensions = Core::self()->pluginController()->queryPluginsForContextMenuExtensions(&c); | 723 | auto extensions = Core::self()->pluginController()->queryPluginsForContextMenuExtensions(&c, d->m_addedContextMenu); | ||
724 | 724 | | |||
725 | ContextMenuExtension::populateMenu(d->m_addedContextMenu, extensions); | 725 | ContextMenuExtension::populateMenu(d->m_addedContextMenu, extensions); | ||
726 | 726 | | |||
727 | foreach ( QAction* action, d->m_addedContextMenu->actions() ) { | 727 | foreach ( QAction* action, d->m_addedContextMenu->actions() ) { | ||
728 | menu->addAction(action); | 728 | menu->addAction(action); | ||
729 | } | 729 | } | ||
730 | } | 730 | } | ||
731 | 731 | | |||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |