ProjectExplorer: Fixed static storage of Icons.

This commit is contained in:
Friedemann Kleint
2010-02-12 12:54:12 +01:00
parent b7512a2dc7
commit 0f04f08344

View File

@@ -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()