diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-03 09:05:08 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-03 09:05:08 +0100 |
commit | be33e2c67ec56c7a54680dbce5af6f06281d80e6 (patch) | |
tree | a993fd4ef0ec33b1fd35b576c9d19e1b5a7ddc6f /common/modelresult.cpp | |
parent | cba59b8cfa941548392ddc52e8e9ff2ec5b9e82e (diff) | |
download | sink-be33e2c67ec56c7a54680dbce5af6f06281d80e6.tar.gz sink-be33e2c67ec56c7a54680dbce5af6f06281d80e6.zip |
Removed broken tests
Diffstat (limited to 'common/modelresult.cpp')
-rw-r--r-- | common/modelresult.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/common/modelresult.cpp b/common/modelresult.cpp index e11ec9c..cc5f4ed 100644 --- a/common/modelresult.cpp +++ b/common/modelresult.cpp | |||
@@ -253,14 +253,6 @@ bool ModelResult<T, Ptr>::hasChildren(const QModelIndex &parent) const | |||
253 | if (mQuery.parentProperty().isEmpty() && parent.isValid()) { | 253 | if (mQuery.parentProperty().isEmpty() && parent.isValid()) { |
254 | return false; | 254 | return false; |
255 | } | 255 | } |
256 | // //Figure out whether we have children | ||
257 | // const auto id = parent.internalId(); | ||
258 | // if (!mEntityChildrenFetched.contains(id)) { | ||
259 | // //Since we don't retrieve that information as part of the entity, | ||
260 | // //we have to query for the children to see if we have some | ||
261 | // auto p = const_cast<ModelResult<T, Ptr>*>(this); | ||
262 | // p->fetchMore(parent); | ||
263 | // } | ||
264 | return QAbstractItemModel::hasChildren(parent); | 256 | return QAbstractItemModel::hasChildren(parent); |
265 | } | 257 | } |
266 | 258 | ||