forked from qt-creator/qt-creator
QmlProject: Fix mainUiFilePath()
The method mainUiFilePath() is supposed to return the actual file path that is relative to the project file. Removing mainUiFilePath() from QmlProjectItem, since QmlProjectItem is supposed to contain only the pure data. Task-number: QDS-9650 Change-Id: Iad474586cad8f8cef745aadb63d421573d7d9c83 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -291,7 +291,7 @@ Utils::FilePath QmlBuildSystem::mainFilePath() const
|
||||
|
||||
Utils::FilePath QmlBuildSystem::mainUiFilePath() const
|
||||
{
|
||||
return m_projectItem->mainUiFilePath();
|
||||
return projectDirectory().pathAppended(mainUiFile());
|
||||
}
|
||||
|
||||
bool QmlBuildSystem::setMainFileInProjectFile(const Utils::FilePath &newMainFilePath)
|
||||
@@ -477,6 +477,11 @@ QString QmlBuildSystem::mainFile() const
|
||||
return m_projectItem->mainFile();
|
||||
}
|
||||
|
||||
QString QmlBuildSystem::mainUiFile() const
|
||||
{
|
||||
return m_projectItem->mainUiFile();
|
||||
}
|
||||
|
||||
bool QmlBuildSystem::qtForMCUs() const
|
||||
{
|
||||
return m_projectItem->isQt4McuProject();
|
||||
|
||||
Reference in New Issue
Block a user