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
Tobias Hunger
qt-creator
Commits
a809dfde
Commit
a809dfde
authored
Sep 16, 2009
by
dt
Browse files
Hide the Run QMake command from the context menu for non qt projects.
parent
65648ee1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp
View file @
a809dfde
...
...
@@ -184,6 +184,7 @@ bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString *
m_runQMakeActionContextMenu
=
new
QAction
(
qmakeIcon
,
tr
(
"Run qmake"
),
this
);
command
=
am
->
registerAction
(
m_runQMakeActionContextMenu
,
Constants
::
RUNQMAKECONTEXTMENU
,
context
);
command
->
setAttribute
(
Core
::
Command
::
CA_Hide
);
mproject
->
addAction
(
command
,
ProjectExplorer
::
Constants
::
G_PROJECT_BUILD
);
connect
(
m_runQMakeActionContextMenu
,
SIGNAL
(
triggered
()),
m_qt4ProjectManager
,
SLOT
(
runQMakeContextMenu
()));
...
...
@@ -215,6 +216,8 @@ void Qt4ProjectManagerPlugin::updateContextMenu(Project *project,
m_runQMakeActionContextMenu
->
setVisible
(
true
);
if
(
!
m_projectExplorer
->
buildManager
()
->
isBuilding
(
project
))
m_runQMakeActionContextMenu
->
setEnabled
(
true
);
}
else
{
m_runQMakeActionContextMenu
->
setVisible
(
false
);
}
}
...
...
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