summaryrefslogtreecommitdiffstats
path: root/common/modelresult.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/modelresult.cpp')
-rw-r--r--common/modelresult.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/modelresult.cpp b/common/modelresult.cpp
index 7565eea..16e3857 100644
--- a/common/modelresult.cpp
+++ b/common/modelresult.cpp
@@ -50,8 +50,8 @@ static qint64 getIdentifier(const QModelIndex &idx)
50template <class T, class Ptr> 50template <class T, class Ptr>
51qint64 ModelResult<T, Ptr>::parentId(const Ptr &value) 51qint64 ModelResult<T, Ptr>::parentId(const Ptr &value)
52{ 52{
53 if (!mQuery.parentProperty.isEmpty()) { 53 if (!mQuery.parentProperty().isEmpty()) {
54 const auto identifier = value->getProperty(mQuery.parentProperty).toByteArray(); 54 const auto identifier = value->getProperty(mQuery.parentProperty()).toByteArray();
55 if (!identifier.isEmpty()) { 55 if (!identifier.isEmpty()) {
56 return qHash(T(value->resourceInstanceIdentifier(), identifier, 0, QSharedPointer<Sink::ApplicationDomain::BufferAdaptor>())); 56 return qHash(T(value->resourceInstanceIdentifier(), identifier, 0, QSharedPointer<Sink::ApplicationDomain::BufferAdaptor>()));
57 } 57 }
@@ -149,7 +149,7 @@ QModelIndex ModelResult<T, Ptr>::parent(const QModelIndex &index) const
149template <class T, class Ptr> 149template <class T, class Ptr>
150bool ModelResult<T, Ptr>::hasChildren(const QModelIndex &parent) const 150bool ModelResult<T, Ptr>::hasChildren(const QModelIndex &parent) const
151{ 151{
152 if (mQuery.parentProperty.isEmpty() && parent.isValid()) { 152 if (mQuery.parentProperty().isEmpty() && parent.isValid()) {
153 return false; 153 return false;
154 } 154 }
155 //Figure out whether we have children 155 //Figure out whether we have children