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

remove viewMainTitle in ViewModel: no longer useful

parent 432d42d8
......@@ -185,19 +185,6 @@ int ViewsModel::indexFromViewType(ViewManager::ViewsType type)
return -1;
}
QString ViewsModel::viewMainTitle(ViewManager::ViewsType type, QString suggestedMainTitle) const
{
auto result = std::move(suggestedMainTitle);
if (!result.isEmpty()) {
return result;
}
result = d->mNames[type];
return result;
}
QUrl ViewsModel::viewImageUrl(ViewManager::ViewsType type, QUrl suggestedImageUrl) const
{
auto result = std::move(suggestedImageUrl);
......
......@@ -57,8 +57,6 @@ public:
Q_INVOKABLE int indexFromViewType(ViewManager::ViewsType type);
Q_INVOKABLE QString viewMainTitle(ViewManager::ViewsType type, QString suggestedMainTitle) const;
Q_INVOKABLE QUrl viewImageUrl(ViewManager::ViewsType type, QUrl suggestedImageUrl) const;
private:
......
......@@ -62,7 +62,7 @@ RowLayout {
browseStackView.push(dataGridView, {
viewType: viewType,
filterType: filterType,
mainTitle: pageModel.viewMainTitle(viewType, mainTitle),
mainTitle: mainTitle,
secondaryTitle: secondaryTitle,
image: pageModel.viewImageUrl(viewType, imageUrl),
modelType: dataType,
......
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