forked from qt-creator/qt-creator
QmlDump: Get right Qt version for .qmlproject
We're using a QObject property to get the Qt Version Id: QmlDumpTool is in Qt4ProjectManager, which shouldn't have a dependency to QmlProjectManager. Reviewed-by: Christian Kamm
This commit is contained in:
@@ -67,6 +67,7 @@ QmlProjectRunConfiguration::QmlProjectRunConfiguration(Internal::QmlProjectTarge
|
||||
m_isEnabled(false)
|
||||
{
|
||||
ctor();
|
||||
updateQtVersions();
|
||||
}
|
||||
|
||||
QmlProjectRunConfiguration::QmlProjectRunConfiguration(Internal::QmlProjectTarget *parent, QmlProjectRunConfiguration *source) :
|
||||
@@ -78,6 +79,7 @@ QmlProjectRunConfiguration::QmlProjectRunConfiguration(Internal::QmlProjectTarge
|
||||
{
|
||||
ctor();
|
||||
setMainScript(source->m_scriptFile);
|
||||
updateQtVersions();
|
||||
}
|
||||
|
||||
bool QmlProjectRunConfiguration::isEnabled(ProjectExplorer::BuildConfiguration *bc) const
|
||||
@@ -158,6 +160,11 @@ QString QmlProjectRunConfiguration::workingDirectory() const
|
||||
return projectFile.absolutePath();
|
||||
}
|
||||
|
||||
int QmlProjectRunConfiguration::qtVersionId() const
|
||||
{
|
||||
return m_qtVersionId;
|
||||
}
|
||||
|
||||
Qt4ProjectManager::QtVersion *QmlProjectRunConfiguration::qtVersion() const
|
||||
{
|
||||
if (m_qtVersionId == -1)
|
||||
|
||||
Reference in New Issue
Block a user