forked from qt-creator/qt-creator
cplusplus: Make functions of Icons static
This avoids multiple instatiations and reloading of the same image files. Change-Id: I4d0bb955e23c1cb817671c25bff4e74fb7b3d0f4 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "Overview.h"
|
||||
|
||||
#include <cplusplus/Icons.h>
|
||||
#include <cplusplus/Scope.h>
|
||||
#include <cplusplus/Literals.h>
|
||||
#include <cplusplus/Symbols.h>
|
||||
@@ -210,7 +211,7 @@ QVariant OverviewModel::data(const QModelIndex &index, int role) const
|
||||
|
||||
case Qt::DecorationRole: {
|
||||
Symbol *symbol = static_cast<Symbol *>(index.internalPointer());
|
||||
return _icons.iconForSymbol(symbol);
|
||||
return Icons::iconForSymbol(symbol);
|
||||
} break;
|
||||
|
||||
case FileNameRole: {
|
||||
|
||||
Reference in New Issue
Block a user