summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2016-12-19 17:21:35 +0100
committerAleix Pol <[email protected]>2016-12-19 17:21:35 +0100
commitd7412e8e0a7128e888c09be2fde8dfa42ddf4437 (patch)
tree0dad2691b565cd3a2cd285780f4f80a4579719b2
parent5ea59da442254406cfdd17ae30a57bf5d8368a64 (diff)
Remove unneeded signal
-rw-r--r--libdiscover/resources/AbstractResourcesBackend.h5
-rw-r--r--libdiscover/resources/ResourcesModel.cpp1
-rw-r--r--libdiscover/resources/ResourcesModel.h1
-rw-r--r--libdiscover/resources/ResourcesProxyModel.cpp6
-rw-r--r--libdiscover/resources/ResourcesProxyModel.h1
5 files changed, 0 insertions, 14 deletions
diff --git a/libdiscover/resources/AbstractResourcesBackend.h b/libdiscover/resources/AbstractResourcesBackend.h
index 59598e1..05788d5 100644
--- a/libdiscover/resources/AbstractResourcesBackend.h
+++ b/libdiscover/resources/AbstractResourcesBackend.h
@@ -212,11 +212,6 @@ class DISCOVERCOMMON_EXPORT AbstractResourcesBackend : public QObject
* a signal in the model to show the view that all data of a certain backend changed.
*/
void allDataChanged(const QVector<QByteArray> &propertyNames);
- /**
- * This should be emitted whenever there are new search results available, other than the ones returned previously,
- * or the data set in which the backend searched changed.
- */
- void searchInvalidated();
/**
* Allows to notify some @p properties in @p resource have changed
diff --git a/libdiscover/resources/ResourcesModel.cpp b/libdiscover/resources/ResourcesModel.cpp
index c3aa9b7..3a31e0c 100644
--- a/libdiscover/resources/ResourcesModel.cpp
+++ b/libdiscover/resources/ResourcesModel.cpp
@@ -98,7 +98,6 @@ void ResourcesModel::addResourcesBackend(AbstractResourcesBackend* backend)
connect(backend, &AbstractResourcesBackend::allDataChanged, this, &ResourcesModel::updateCaller);
connect(backend, &AbstractResourcesBackend::resourcesChanged, this, &ResourcesModel::resourceDataChanged);
connect(backend, &AbstractResourcesBackend::updatesCountChanged, this, &ResourcesModel::updatesCountChanged);
- connect(backend, &AbstractResourcesBackend::searchInvalidated, this, &ResourcesModel::searchInvalidated);
connect(backend, &AbstractResourcesBackend::resourceRemoved, this, &ResourcesModel::resourceRemoved);
connect(backend, &AbstractResourcesBackend::passiveMessage, this, &ResourcesModel::passiveMessage);
diff --git a/libdiscover/resources/ResourcesModel.h b/libdiscover/resources/ResourcesModel.h
index 86d0d12..e6f17be 100644
--- a/libdiscover/resources/ResourcesModel.h
+++ b/libdiscover/resources/ResourcesModel.h
@@ -88,7 +88,6 @@ class DISCOVERCOMMON_EXPORT ResourcesModel : public QObject
void allInitialized();
void backendsChanged();
void updatesCountChanged();
- void searchInvalidated();
void backendDataChanged(AbstractResourcesBackend* backend, const QVector<QByteArray>& properties);
void resourceDataChanged(AbstractResource* resource, const QVector<QByteArray>& properties);
void resourceRemoved(AbstractResource* resource);
diff --git a/libdiscover/resources/ResourcesProxyModel.cpp b/libdiscover/resources/ResourcesProxyModel.cpp
index 188fda7..499d4f7 100644
--- a/libdiscover/resources/ResourcesProxyModel.cpp
+++ b/libdiscover/resources/ResourcesProxyModel.cpp
@@ -63,7 +63,6 @@ ResourcesProxyModel::ResourcesProxyModel(QObject *parent)
{
// new ModelTest(this, this);
- connect(ResourcesModel::global(), &ResourcesModel::searchInvalidated, this, &ResourcesProxyModel::refreshSearch);
connect(ResourcesModel::global(), &ResourcesModel::backendsChanged, this, &ResourcesProxyModel::invalidateFilter);
connect(ResourcesModel::global(), &ResourcesModel::backendDataChanged, this, &ResourcesProxyModel::refreshBackend);
connect(ResourcesModel::global(), &ResourcesModel::resourceDataChanged, this, &ResourcesProxyModel::refreshResource);
@@ -147,11 +146,6 @@ QString ResourcesProxyModel::lastSearch() const
return m_filters.search;
}
-void ResourcesProxyModel::refreshSearch()
-{
- setSearch(lastSearch());
-}
-
void ResourcesProxyModel::setOriginFilter(const QString &origin)
{
if (origin == originFilter())
diff --git a/libdiscover/resources/ResourcesProxyModel.h b/libdiscover/resources/ResourcesProxyModel.h
index 68f7722..d4c56a8 100644
--- a/libdiscover/resources/ResourcesProxyModel.h
+++ b/libdiscover/resources/ResourcesProxyModel.h
@@ -113,7 +113,6 @@ public:
void componentComplete() override;
private Q_SLOTS:
- void refreshSearch();
void refreshBackend(AbstractResourcesBackend* backend, const QVector<QByteArray>& properties);
void refreshResource(AbstractResource* resource, const QVector<QByteArray>& properties);
void removeResource(AbstractResource* resource);