forked from qt-creator/qt-creator
Revert "QmlDesigner: bug fix for components"
Fix wasn't fixing anything, the slash is not in libraryPath but
in the string that is appended to it.
This reverts commit 95009e0a41
.
This commit is contained in:
@@ -804,7 +804,7 @@ static inline QString fixComponentPathForIncompatibleQt(const QString &component
|
|||||||
if (componentPath.contains(importString)) {
|
if (componentPath.contains(importString)) {
|
||||||
int index = componentPath.indexOf(importString) + 8;
|
int index = componentPath.indexOf(importString) + 8;
|
||||||
const QString relativeImportPath = componentPath.right(componentPath.length() - index);
|
const QString relativeImportPath = componentPath.right(componentPath.length() - index);
|
||||||
QString fixedComponentPath = QLibraryInfo::location(QLibraryInfo::ImportsPath) + QLatin1Char('/') + relativeImportPath;
|
QString fixedComponentPath = QLibraryInfo::location(QLibraryInfo::ImportsPath) + relativeImportPath;
|
||||||
fixedComponentPath.replace(QLatin1Char('\\'), QLatin1Char('/'));
|
fixedComponentPath.replace(QLatin1Char('\\'), QLatin1Char('/'));
|
||||||
if (QFileInfo(fixedComponentPath).exists())
|
if (QFileInfo(fixedComponentPath).exists())
|
||||||
return fixedComponentPath;
|
return fixedComponentPath;
|
||||||
|
Reference in New Issue
Block a user