forked from qt-creator/qt-creator
FileProperties: Use native separators for file path
Change-Id: I66c9f62b0c48165f5160d117ad3f0cf5e84f686b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
André Hartmann
parent
93434cf5d1
commit
2b45a44ee1
@@ -33,6 +33,7 @@
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
#include <QLocale>
|
||||
|
||||
@@ -68,7 +69,7 @@ void FilePropertiesDialog::refresh()
|
||||
QLocale locale;
|
||||
|
||||
m_ui->name->setText(fileInfo.fileName());
|
||||
m_ui->path->setText(fileInfo.canonicalPath());
|
||||
m_ui->path->setText(QDir::toNativeSeparators(fileInfo.canonicalPath()));
|
||||
|
||||
const Utils::MimeType mt = Utils::mimeTypeForFile(fileInfo);
|
||||
m_ui->mimeType->setText(mt.isValid() ? mt.name() : tr("Undefined"));
|
||||
|
Reference in New Issue
Block a user