forked from qt-creator/qt-creator
Wizards: Platform specific file sorting on Windows via Utils::FileName
Change-Id: I519f7271bfce57028282f4c6ca6ff3f1ea4671c0 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
#include "ui_projectwizardpage.h"
|
#include "ui_projectwizardpage.h"
|
||||||
|
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
|
#include <utils/fileutils.h>
|
||||||
#include <vcsbase/vcsbaseconstants.h>
|
#include <vcsbase/vcsbaseconstants.h>
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
@@ -142,7 +143,7 @@ static bool generatedFilePathLessThan(const QString &filePath1, const QString &f
|
|||||||
const bool filePath2HasDir = filePath2.contains(QLatin1Char('/'));
|
const bool filePath2HasDir = filePath2.contains(QLatin1Char('/'));
|
||||||
|
|
||||||
if (filePath1HasDir == filePath2HasDir)
|
if (filePath1HasDir == filePath2HasDir)
|
||||||
return filePath1 < filePath2;
|
return Utils::FileName::fromString(filePath1) < Utils::FileName::fromString(filePath2);
|
||||||
else
|
else
|
||||||
return filePath1HasDir;
|
return filePath1HasDir;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user