fix: display system-native path separators
This commit is contained in:
parent
9f4c9c7376
commit
052d23be60
|
@ -1,6 +1,7 @@
|
||||||
#include "metadatamodel.h"
|
#include "metadatamodel.h"
|
||||||
#include "exiv2wrapper.h"
|
#include "exiv2wrapper.h"
|
||||||
|
|
||||||
|
#include <QDir>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
@ -56,7 +57,7 @@ void MetadataModel::setFile(const QString &imageFilePath)
|
||||||
appendProperty(QStringLiteral("File"), QStringLiteral("File.ItemType"),
|
appendProperty(QStringLiteral("File"), QStringLiteral("File.ItemType"),
|
||||||
tr("Item type"), itemTypeString);
|
tr("Item type"), itemTypeString);
|
||||||
appendProperty(QStringLiteral("File"), QStringLiteral("File.Path"),
|
appendProperty(QStringLiteral("File"), QStringLiteral("File.Path"),
|
||||||
tr("Folder path"), fileInfo.path());
|
tr("Folder path"), QDir::toNativeSeparators(fileInfo.path()));
|
||||||
appendProperty(QStringLiteral("File"), QStringLiteral("File.Size"),
|
appendProperty(QStringLiteral("File"), QStringLiteral("File.Size"),
|
||||||
tr("Size"), sizeString);
|
tr("Size"), sizeString);
|
||||||
appendProperty(QStringLiteral("File"), QStringLiteral("File.CreatedTime"),
|
appendProperty(QStringLiteral("File"), QStringLiteral("File.CreatedTime"),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user