Core: Clean up FileIconProvider interface

Change-Id: I98c3c8796cb887f5bb3c5184854562ff36727836
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
hjk
2013-09-12 16:06:33 +02:00
parent 3bb7339fd4
commit 65cc8ae4c2
22 changed files with 118 additions and 173 deletions

View File

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