Commit a1921b02 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵 Committed by Nate Graham
Browse files

remove viewImageUrl in ViewModel: no longer useful

parent e8912088
......@@ -185,18 +185,5 @@ int ViewsModel::indexFromViewType(ViewManager::ViewsType type)
return -1;
}
QUrl ViewsModel::viewImageUrl(ViewManager::ViewsType type, QUrl suggestedImageUrl) const
{
auto result = std::move(suggestedImageUrl);
if (!result.isEmpty()) {
return result;
}
result = d->mIcons[type];
return result;
}
#include "moc_viewsmodel.cpp"
......@@ -57,8 +57,6 @@ public:
Q_INVOKABLE int indexFromViewType(ViewManager::ViewsType type);
Q_INVOKABLE QUrl viewImageUrl(ViewManager::ViewsType type, QUrl suggestedImageUrl) const;
private:
std::unique_ptr<ViewsModelPrivate> d;
......
......@@ -64,7 +64,7 @@ RowLayout {
filterType: filterType,
mainTitle: mainTitle,
secondaryTitle: secondaryTitle,
image: pageModel.viewImageUrl(viewType, imageUrl),
image: imageUrl,
modelType: dataType,
defaultIcon: viewDefaultIcon,
showRating: viewShowRating,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment