Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
c8b01876
Commit
c8b01876
authored
Mar 19, 2010
by
Friedemann Kleint
Browse files
VCS: Annotate task window: Give action global context.
parent
3da48de3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/taskwindow.cpp
View file @
c8b01876
...
...
@@ -469,9 +469,13 @@ TaskWindow::TaskWindow()
m_listview
->
addAction
(
command
->
action
());
connect
(
m_copyAction
,
SIGNAL
(
triggered
()),
SLOT
(
copy
()));
// Annotate using VCS: Make visible in all contexts
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
()
->
registerAction
(
m_vcsAnnotateAction
,
QLatin1String
(
"ProjectExplorer.Task.VCS_Annotate"
),
m_taskWindowContext
->
c
ontext
()
);
registerAction
(
m_vcsAnnotateAction
,
QLatin1String
(
"ProjectExplorer.Task.VCS_Annotate"
),
annotateC
ontext
);
m_listview
->
addAction
(
command
->
action
());
connect
(
m_vcsAnnotateAction
,
SIGNAL
(
triggered
()),
SLOT
(
vcsAnnotate
()));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment