Skip to content
Snippets Groups Projects
Commit ce14eab6 authored by con's avatar con
Browse files

Use file icon provider, mainly for consistency reasons.

And a vague probability that it could (in the future)
save fetching the standard icon multiple times from the system.
parent 99929ac9
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "projectexplorerconstants.h" #include "projectexplorerconstants.h"
#include <coreplugin/mimedatabase.h> #include <coreplugin/mimedatabase.h>
#include <coreplugin/fileiconprovider.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QtCore/QFileInfo> #include <QtCore/QFileInfo>
...@@ -153,7 +154,7 @@ bool FileNode::isGenerated() const ...@@ -153,7 +154,7 @@ bool FileNode::isGenerated() const
FolderNode::FolderNode(const QString &folderPath) : FolderNode::FolderNode(const QString &folderPath) :
Node(FolderNodeType, folderPath), Node(FolderNodeType, folderPath),
m_displayName(QDir::toNativeSeparators(folderPath)), m_displayName(QDir::toNativeSeparators(folderPath)),
m_icon(QApplication::style()->standardIcon(QStyle::SP_DirIcon)) m_icon(Core::FileIconProvider::instance()->icon(QFileIconProvider::Folder))
{ {
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment