diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-09-06 11:32:15 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-09-08 11:18:09 +0000 |
commit | 1cf1700d1ca076298bf9095e2547490aa662e80a (patch) | |
tree | ba291a971c17b707d2a3d57fe8ac15e6404d6fa2 /src/plugins/resourceeditor | |
parent | bae73e72468fae476d4b6c5eae839ba277cb6e6c (diff) |
Core::FileIconProvider: Add helper method to get a directory icon with overlay
Add a helper method to request a directory icon with an overlay icon for the
project tree.
Change-Id: Idea2ea9ec2ea6790bf8d087723700364fbcafec6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor')
-rw-r--r-- | src/plugins/resourceeditor/qrceditor/resourcefile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp index b139e7fda4..5e17105cfa 100644 --- a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp +++ b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp @@ -564,8 +564,8 @@ void ResourceFile::clearPrefixList() ResourceModel::ResourceModel(QObject *parent) : QAbstractItemModel(parent), m_dirty(false) { - m_prefixIcon = Core::FileIconProvider::overlayIcon(QStyle::SP_DirIcon, - QIcon(QLatin1String(ProjectExplorer::Constants::FILEOVERLAY_QRC)), QSize(16, 16)); + static QIcon resourceFolderIcon = Core::FileIconProvider::directoryIcon(QLatin1String(ProjectExplorer::Constants::FILEOVERLAY_QRC)); + m_prefixIcon = resourceFolderIcon; } void ResourceModel::setDirty(bool b) |