summaryrefslogtreecommitdiffstats
path: root/common/resultprovider.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/resultprovider.h')
-rw-r--r--common/resultprovider.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/resultprovider.h b/common/resultprovider.h
index 0d23127..921cd6b 100644
--- a/common/resultprovider.h
+++ b/common/resultprovider.h
@@ -53,7 +53,7 @@ public:
53 virtual void initialResultSetComplete() = 0; 53 virtual void initialResultSetComplete() = 0;
54 virtual void complete() = 0; 54 virtual void complete() = 0;
55 virtual void clear() = 0; 55 virtual void clear() = 0;
56 virtual void setFetcher(const std::function<void(const QByteArray &parent)> &fetcher) 56 virtual void setFetcher(const std::function<void(const T &parent)> &fetcher)
57 { 57 {
58 } 58 }
59 59
@@ -141,7 +141,7 @@ public:
141 return true; 141 return true;
142 } 142 }
143 143
144 void setFetcher(const std::function<void(const QByteArray &parent)> &fetcher) 144 void setFetcher(const std::function<void(const Ptr &parent)> &fetcher)
145 { 145 {
146 if (auto model = mModel.toStrongRef()) { 146 if (auto model = mModel.toStrongRef()) {
147 model->setFetcher(fetcher); 147 model->setFetcher(fetcher);
@@ -297,9 +297,9 @@ public:
297 return mResultEmitter.toStrongRef().isNull(); 297 return mResultEmitter.toStrongRef().isNull();
298 } 298 }
299 299
300 void setFetcher(const std::function<void(const QByteArray &parent)> &fetcher) 300 void setFetcher(const std::function<void(const T &parent)> &fetcher)
301 { 301 {
302 fetcher(QByteArray()); 302 fetcher(T());
303 } 303 }
304 304
305private: 305private: