forked from qt-creator/qt-creator
QmlProjectManager refactoring
Putting every class in it's own files + avoid "using namespace"
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/target.h>
|
||||
|
||||
#include <qmlprojectmanager/qmlproject.h>
|
||||
#include <qmlprojectmanager/qmlprojectrunconfiguration.h>
|
||||
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QtPlugin>
|
||||
@@ -186,8 +186,8 @@ void QmlInspectorMode::connectToViewer()
|
||||
return;
|
||||
}
|
||||
|
||||
QmlProjectManager::QmlRunConfiguration* config =
|
||||
qobject_cast<QmlProjectManager::QmlRunConfiguration*>(project->activeTarget()->activeRunConfiguration());
|
||||
QmlProjectManager::QmlProjectRunConfiguration* config =
|
||||
qobject_cast<QmlProjectManager::QmlProjectRunConfiguration*>(project->activeTarget()->activeRunConfiguration());
|
||||
if (!config) {
|
||||
emit statusMessage(tr("Cannot find project run configuration, debugging canceled."));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user