forked from qt-creator/qt-creator
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:
@@ -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))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user