aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2021-06-08 12:54:22 +0200
committerDavid Schulz <david.schulz@qt.io>2021-06-09 12:25:19 +0000
commit43b6ada0db401fd29cb77b5ab621f786bd31483b (patch)
tree66ecf46da753937ae9bdf623089e30bb237d81ce /src/plugins/resourceeditor/qrceditor/resourcefile.cpp
parent093f3479ce19ad559d3a07263a23de6fa3e60c09 (diff)
Core: filepathify FileIconProvider
Change-Id: Id6fcc05317f3f5144c662fb4826438407f8d9d21 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/qrceditor/resourcefile.cpp')
-rw-r--r--src/plugins/resourceeditor/qrceditor/resourcefile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
index 9cb8dd1e79..7b48f88ef2 100644
--- a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
+++ b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
@@ -798,7 +798,7 @@ QVariant ResourceModel::data(const QModelIndex &index, int role) const
if (iconFileExtension(path))
file->icon = QIcon(path);
else
- file->icon = Core::FileIconProvider::icon(QFileInfo(path));
+ file->icon = Core::FileIconProvider::icon(Utils::FilePath::fromString(path));
}
if (!file->icon.isNull())
result = file->icon;