forked from qt-creator/qt-creator
QmlDesigner: Update for change in QDir::relativeFilePath()
Change-Id: If90cba32aeca2349921870e30bd62d45a4a55e45 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -383,7 +383,7 @@ public:
|
||||
// should probably try to make it relatve to some import path, not to the document path
|
||||
QString relativeDir = dir.relativeFilePath(path);
|
||||
QString name = relativeDir.replace(QLatin1Char('/'), QLatin1Char('.'));
|
||||
if (!name.isEmpty())
|
||||
if (!name.isEmpty() && name != QLatin1String("."))
|
||||
typeName.prepend(name + QLatin1Char('.'));
|
||||
} else if (importInfo.isValid() && importInfo.type() == ImportType::QrcDirectory) {
|
||||
QString path = QrcParser::normalizedQrcDirectoryPath(importInfo.path());
|
||||
|
Reference in New Issue
Block a user