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
......@@ -33,6 +33,7 @@
#include "projectexplorerconstants.h"
#include <coreplugin/mimedatabase.h>
#include <coreplugin/fileiconprovider.h>
#include <utils/qtcassert.h>
#include <QtCore/QFileInfo>
......@@ -153,7 +154,7 @@ bool FileNode::isGenerated() const
FolderNode::FolderNode(const QString &folderPath) :
Node(FolderNodeType, folderPath),
m_displayName(QDir::toNativeSeparators(folderPath)),
m_icon(QApplication::style()->standardIcon(QStyle::SP_DirIcon))
m_icon(Core::FileIconProvider::instance()->icon(QFileIconProvider::Folder))
{
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment