From ce14eab65d2201403584b82c5500bd674bbaa43a Mon Sep 17 00:00:00 2001 From: con <qtc-committer@nokia.com> Date: Wed, 10 Mar 2010 13:56:57 +0100 Subject: [PATCH] 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. --- src/plugins/projectexplorer/projectnodes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/projectnodes.cpp b/src/plugins/projectexplorer/projectnodes.cpp index bc3c293abb3..c552b11235b 100644 --- a/src/plugins/projectexplorer/projectnodes.cpp +++ b/src/plugins/projectexplorer/projectnodes.cpp @@ -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)) { } -- GitLab