forked from qt-creator/qt-creator
Core: Clean up FileIconProvider interface
Change-Id: I98c3c8796cb887f5bb3c5184854562ff36727836 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
@@ -257,7 +257,7 @@ QVariant SelectableFilesModel::data(const QModelIndex &index, int role) const
|
||||
return t->checked;
|
||||
if (role == Qt::DecorationRole) {
|
||||
if (t->icon.isNull())
|
||||
t->icon = Core::FileIconProvider::instance()->icon(QFileInfo(t->fullPath));
|
||||
t->icon = Core::FileIconProvider::icon(t->fullPath);
|
||||
return t->icon;
|
||||
}
|
||||
return QVariant();
|
||||
|
||||
Reference in New Issue
Block a user