forked from qt-creator/qt-creator
Remove Qt version checks.
Qt 5.3 is the minimum requirement these days. Remove all fallback code from sources and project files. Change-Id: If6188a471197acadda4d6baee71804ba1a8026c6 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -47,10 +47,6 @@
|
||||
#include <QPushButton>
|
||||
#include <QWidget>
|
||||
|
||||
#if QT_VERSION < 0x050000
|
||||
#include <QAbstractFileEngine>
|
||||
#endif
|
||||
|
||||
using namespace Utils;
|
||||
|
||||
namespace Core {
|
||||
@@ -187,11 +183,6 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user