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.
This commit is contained in:
con
2010-03-10 13:56:57 +01:00
parent 99929ac9b9
commit ce14eab65d

View File

@@ -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))
{
}