summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2016-10-26 16:39:02 +0200
committerAleix Pol <[email protected]>2016-10-26 16:39:02 +0200
commit3ea9eaf4b07aa8dbff99d3587fab72bfa8fedbbf (patch)
treeacb4b373d2ef7f873566771395141c080d93b12f
parentf613de6e2cbed2450a504fbc4213acb4c56e9f78 (diff)
Remove badly used property
-rw-r--r--discover/qml/ApplicationsListPage.qml1
-rw-r--r--libdiscover/resources/ResourcesProxyModel.cpp13
-rw-r--r--libdiscover/resources/ResourcesProxyModel.h3
3 files changed, 0 insertions, 17 deletions
diff --git a/discover/qml/ApplicationsListPage.qml b/discover/qml/ApplicationsListPage.qml
index 2b44497..665da25 100644
--- a/discover/qml/ApplicationsListPage.qml
+++ b/discover/qml/ApplicationsListPage.qml
@@ -73,7 +73,6 @@ DiscoverPage {
}
model: ApplicationProxyModel {
id: appsModel
- isSortingByRelevancy: true
stringSortRole: "ratingPoints"
sortOrder: Qt.DescendingOrder
isShowingTechnical: category && category.shouldShowTechnical
diff --git a/libdiscover/resources/ResourcesProxyModel.cpp b/libdiscover/resources/ResourcesProxyModel.cpp
index caa6fc2..4a34805 100644
--- a/libdiscover/resources/ResourcesProxyModel.cpp
+++ b/libdiscover/resources/ResourcesProxyModel.cpp
@@ -294,19 +294,6 @@ Category* ResourcesProxyModel::filteredCategory() const
return m_filters.category;
}
-void ResourcesProxyModel::setSortByRelevancy(bool sort)
-{
- if (sort != m_sortByRelevancy) {
- m_sortByRelevancy = sort;
- invalidateSorting();
- }
-}
-
-bool ResourcesProxyModel::sortingByRelevancy() const
-{
- return m_sortByRelevancy;
-}
-
void ResourcesProxyModel::setStateFilter(AbstractResource::State s)
{
if (s != m_filters.state) {
diff --git a/libdiscover/resources/ResourcesProxyModel.h b/libdiscover/resources/ResourcesProxyModel.h
index 886ba7d..faaa64f 100644
--- a/libdiscover/resources/ResourcesProxyModel.h
+++ b/libdiscover/resources/ResourcesProxyModel.h
@@ -44,7 +44,6 @@ class DISCOVERCOMMON_EXPORT ResourcesProxyModel : public QAbstractListModel
Q_PROPERTY(Category* filteredCategory READ filteredCategory WRITE setFiltersFromCategory NOTIFY categoryChanged)
Q_PROPERTY(QString originFilter READ originFilter WRITE setOriginFilter)
Q_PROPERTY(bool isShowingTechnical READ shouldShowTechnical WRITE setShouldShowTechnical NOTIFY showTechnicalChanged)
- Q_PROPERTY(bool isSortingByRelevancy READ sortingByRelevancy WRITE setSortByRelevancy)
Q_PROPERTY(AbstractResource::State stateFilter READ stateFilter WRITE setStateFilter NOTIFY stateFilterChanged)
Q_PROPERTY(QString mimeTypeFilter READ mimeTypeFilter WRITE setMimeTypeFilter)
Q_PROPERTY(QString search READ lastSearch WRITE setSearch NOTIFY searchChanged)
@@ -63,8 +62,6 @@ public:
void setFiltersFromCategory(Category *category);
void setShouldShowTechnical(bool show);
bool shouldShowTechnical() const;
- void setSortByRelevancy(bool sort);
- bool sortingByRelevancy() const;
void setStateFilter(AbstractResource::State s);
AbstractResource::State stateFilter() const;
void setSortRole(int sortRole);