Skip to content
Snippets Groups Projects
Commit 0f04f083 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

ProjectExplorer: Fixed static storage of Icons.

parent b7512a2d
No related branches found
No related tags found
No related merge requests found
......@@ -149,15 +149,11 @@ bool FileNode::isGenerated() const
\see FileNode
\see ProjectNode
*/
FolderNode::FolderNode(const QString &folderPath)
: Node(FolderNodeType, folderPath),
m_folderName(folderPath)
FolderNode::FolderNode(const QString &folderPath) :
Node(FolderNodeType, folderPath),
m_folderName(folderPath),
m_icon(QApplication::style()->standardIcon(QStyle::SP_DirIcon))
{
static QIcon dirIcon;
if (dirIcon.isNull()) {
dirIcon = QApplication::style()->standardIcon(QStyle::SP_DirIcon);
}
m_icon = dirIcon;
}
FolderNode::~FolderNode()
......
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