summaryrefslogtreecommitdiffstats
path: root/src/gui/itemmodels/qfilesystemmodel_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/itemmodels/qfilesystemmodel_p.h')
-rw-r--r--src/gui/itemmodels/qfilesystemmodel_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/itemmodels/qfilesystemmodel_p.h b/src/gui/itemmodels/qfilesystemmodel_p.h
index 70468460e8..5160a826c0 100644
--- a/src/gui/itemmodels/qfilesystemmodel_p.h
+++ b/src/gui/itemmodels/qfilesystemmodel_p.h
@@ -182,10 +182,10 @@ public:
for (QFileSystemNode *child : qAsConst(children)) {
//On windows the root (My computer) has no path so we don't want to add a / for nothing (e.g. /C:/)
if (!path.isEmpty()) {
- if (path.endsWith(QLatin1Char('/')))
+ if (path.endsWith(u'/'))
child->updateIcon(iconProvider, path + child->fileName);
else
- child->updateIcon(iconProvider, path + QLatin1Char('/') + child->fileName);
+ child->updateIcon(iconProvider, path + u'/' + child->fileName);
} else
child->updateIcon(iconProvider, child->fileName);
}
@@ -197,10 +197,10 @@ public:
for (QFileSystemNode *child : qAsConst(children)) {
//On windows the root (My computer) has no path so we don't want to add a / for nothing (e.g. /C:/)
if (!path.isEmpty()) {
- if (path.endsWith(QLatin1Char('/')))
+ if (path.endsWith(u'/'))
child->retranslateStrings(iconProvider, path + child->fileName);
else
- child->retranslateStrings(iconProvider, path + QLatin1Char('/') + child->fileName);
+ child->retranslateStrings(iconProvider, path + u'/' + child->fileName);
} else
child->retranslateStrings(iconProvider, child->fileName);
}