Skip to content
Snippets Groups Projects
Commit c8b01876 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

VCS: Annotate task window: Give action global context.

parent 3da48de3
No related branches found
No related tags found
No related merge requests found
...@@ -469,9 +469,13 @@ TaskWindow::TaskWindow() ...@@ -469,9 +469,13 @@ TaskWindow::TaskWindow()
m_listview->addAction(command->action()); m_listview->addAction(command->action());
connect(m_copyAction, SIGNAL(triggered()), SLOT(copy())); connect(m_copyAction, SIGNAL(triggered()), SLOT(copy()));
// Annotate using VCS: Make visible in all contexts
m_vcsAnnotateAction = new QAction(tr("&Annotate"), this); m_vcsAnnotateAction = new QAction(tr("&Annotate"), this);
m_vcsAnnotateAction->setToolTip("Annotate using version control system");
QList<int> annotateContext = m_taskWindowContext->context();
annotateContext << Core::ICore::instance()->uniqueIDManager()->uniqueIdentifier(QLatin1String(Core::Constants::C_GLOBAL));
command = core->actionManager()-> command = core->actionManager()->
registerAction(m_vcsAnnotateAction, QLatin1String("ProjectExplorer.Task.VCS_Annotate"), m_taskWindowContext->context()); registerAction(m_vcsAnnotateAction, QLatin1String("ProjectExplorer.Task.VCS_Annotate"), annotateContext);
m_listview->addAction(command->action()); m_listview->addAction(command->action());
connect(m_vcsAnnotateAction, SIGNAL(triggered()), SLOT(vcsAnnotate())); connect(m_vcsAnnotateAction, SIGNAL(triggered()), SLOT(vcsAnnotate()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment