diff --git a/src/plugins/coreplugin/coreplugin.pro b/src/plugins/coreplugin/coreplugin.pro index e152430c064..381f6a6e573 100644 --- a/src/plugins/coreplugin/coreplugin.pro +++ b/src/plugins/coreplugin/coreplugin.pro @@ -6,7 +6,7 @@ QT += network \ sql greaterThan(QT_MAJOR_VERSION, 4) { - QT += help printsupport core-private + QT += help printsupport } else { CONFIG += help } diff --git a/src/plugins/coreplugin/fileutils.cpp b/src/plugins/coreplugin/fileutils.cpp index 3f3c05b7c20..4f50ee2646d 100644 --- a/src/plugins/coreplugin/fileutils.cpp +++ b/src/plugins/coreplugin/fileutils.cpp @@ -45,8 +45,6 @@ #if QT_VERSION < 0x050000 #include -#else -#include #endif #ifndef Q_OS_WIN @@ -195,9 +193,13 @@ void FileUtils::removeFile(const QString &filePath, bool deleteFromFS) static inline bool fileSystemRenameFile(const QString &orgFilePath, const QString &newFilePath) { +#if QT_VERSION < 0x050000 QAbstractFileEngine *fileEngine = QAbstractFileEngine::create(orgFilePath); // Due to QTBUG-3570 if (!fileEngine->caseSensitive() && orgFilePath.compare(newFilePath, Qt::CaseInsensitive) == 0) return fileEngine->rename(newFilePath); +#endif + // QTBUG-3570 is also valid for Qt 5 but QAbstractFileEngine is now in a private header file and + // the symbol is not exported. return QFile::rename(orgFilePath, newFilePath); }