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:
Alessandro Portale
2012-03-09 12:37:03 +01:00
parent 54801c5163
commit 735898b46b

View File

@@ -34,6 +34,7 @@
#include "ui_projectwizardpage.h"
#include <coreplugin/icore.h>
#include <utils/fileutils.h>
#include <vcsbase/vcsbaseconstants.h>
#include <QDir>
@@ -142,7 +143,7 @@ static bool generatedFilePathLessThan(const QString &filePath1, const QString &f
const bool filePath2HasDir = filePath2.contains(QLatin1Char('/'));
if (filePath1HasDir == filePath2HasDir)
return filePath1 < filePath2;
return Utils::FileName::fromString(filePath1) < Utils::FileName::fromString(filePath2);
else
return filePath1HasDir;
}