forked from qt-creator/qt-creator
Don't show weired directory separators.
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
#include "projectwizardpage.h"
|
#include "projectwizardpage.h"
|
||||||
#include "ui_projectwizardpage.h"
|
#include "ui_projectwizardpage.h"
|
||||||
|
|
||||||
|
#include <QtCore/QDir>
|
||||||
#include <QtCore/QTextStream>
|
#include <QtCore/QTextStream>
|
||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
@@ -111,12 +112,12 @@ void ProjectWizardPage::setFilesDisplay(const QString &commonPath, const QString
|
|||||||
<< "<pre>";
|
<< "<pre>";
|
||||||
if (commonPath.isEmpty()) {
|
if (commonPath.isEmpty()) {
|
||||||
foreach(const QString &f, files)
|
foreach(const QString &f, files)
|
||||||
str << f << '\n';
|
str << QDir::toNativeSeparators(f) << '\n';
|
||||||
} else {
|
} else {
|
||||||
str << commonPath << ":\n\n";
|
str << QDir::toNativeSeparators(commonPath) << ":\n\n";
|
||||||
const int prefixSize = commonPath.size() + 1;
|
const int prefixSize = commonPath.size() + 1;
|
||||||
foreach(const QString &f, files)
|
foreach(const QString &f, files)
|
||||||
str << f.right(f.size() - prefixSize) << '\n';
|
str << QDir::toNativeSeparators(f.right(f.size() - prefixSize)) << '\n';
|
||||||
}
|
}
|
||||||
str << "</pre>";
|
str << "</pre>";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user