forked from qt-creator/qt-creator
Make runQMake simpler
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
#include "qt4project.h"
|
#include "qt4project.h"
|
||||||
#include "profilereader.h"
|
#include "profilereader.h"
|
||||||
#include "qmakestep.h"
|
#include "qmakestep.h"
|
||||||
|
#include "qt4buildconfiguration.h"
|
||||||
|
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <coreplugin/basefilewizard.h>
|
#include <coreplugin/basefilewizard.h>
|
||||||
@@ -247,12 +248,10 @@ void Qt4Manager::runQMakeContextMenu()
|
|||||||
|
|
||||||
void Qt4Manager::runQMake(ProjectExplorer::Project *p)
|
void Qt4Manager::runQMake(ProjectExplorer::Project *p)
|
||||||
{
|
{
|
||||||
QTC_ASSERT(p, return);
|
Qt4Project *qt4pro = qobject_cast<Qt4Project *>(p);
|
||||||
ProjectExplorer::BuildConfiguration *bc = p->activeBuildConfiguration();
|
QTC_ASSERT(qt4pro, return);
|
||||||
QMakeStep *qs = 0;
|
Qt4BuildConfiguration *bc = qt4pro->activeQt4BuildConfiguration();
|
||||||
foreach(BuildStep *bs, bc->buildSteps())
|
QMakeStep *qs = bc->qmakeStep();
|
||||||
if ((qs = qobject_cast<QMakeStep *>(bs)) != 0)
|
|
||||||
break;
|
|
||||||
|
|
||||||
if (!qs)
|
if (!qs)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user