forked from qt-creator/qt-creator
ProjectExplorer: Fixed static storage of Icons.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user