forked from qt-creator/qt-creator
QmlDesigner: Modify the model editor files path
Task-number: QDS-12505 Change-Id: Ib35ba7ab8ce3c6a980770bd73385d1afab630a2d Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -96,13 +96,17 @@ Utils::FilePath dataStoreDir()
|
||||
if (!currentProject)
|
||||
return {};
|
||||
|
||||
return currentProject->projectDirectory().pathAppended("/imports/"
|
||||
+ currentProject->displayName());
|
||||
FilePath oldImportDirectory = currentProject->projectDirectory().pathAppended(
|
||||
"imports/" + currentProject->displayName());
|
||||
if (oldImportDirectory.exists())
|
||||
return oldImportDirectory;
|
||||
|
||||
return currentProject->projectDirectory().pathAppended(currentProject->displayName());
|
||||
}
|
||||
|
||||
inline Utils::FilePath collectionPath(const QString &filePath)
|
||||
{
|
||||
return dataStoreDir().pathAppended("/" + filePath);
|
||||
return dataStoreDir().pathAppended(filePath);
|
||||
}
|
||||
|
||||
inline Utils::FilePath qmlDirFilePath()
|
||||
|
Reference in New Issue
Block a user