diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-02-23 23:31:58 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-02-23 23:31:58 (GMT) |
commit | 216a246daaf3e0b095c4e21efb738b0c7a084a32 (patch) | |
tree | e67c1718aee90d137e6399abc29482bf727cacf2 /src/declarative/util | |
parent | ec7ac34b4a6b1a330460838acc74a53d29f62a7c (diff) | |
download | Qt-216a246daaf3e0b095c4e21efb738b0c7a084a32.zip Qt-216a246daaf3e0b095c4e21efb738b0c7a084a32.tar.gz Qt-216a246daaf3e0b095c4e21efb738b0c7a084a32.tar.bz2 |
Merge fix.
Diffstat (limited to 'src/declarative/util')
-rw-r--r-- | src/declarative/util/qmlxmllistmodel_p.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/declarative/util/qmlxmllistmodel_p.h b/src/declarative/util/qmlxmllistmodel_p.h index 969afd1..50967a5 100644 --- a/src/declarative/util/qmlxmllistmodel_p.h +++ b/src/declarative/util/qmlxmllistmodel_p.h @@ -132,9 +132,10 @@ class Q_DECLARATIVE_EXPORT QmlXmlListModelRole : public QObject Q_OBJECT Q_PROPERTY(QString name READ name WRITE setName) Q_PROPERTY(QString query READ query WRITE setQuery) + Q_PROPERTY(bool isKey READ isKey WRITE setIsKey) public: - QmlXmlListModelRole() {} + QmlXmlListModelRole() : m_isKey(false) {} ~QmlXmlListModelRole() {} QString name() const { return m_name; } @@ -150,6 +151,9 @@ public: m_query = query; } + bool isKey() const { return m_isKey; } + void setIsKey(bool b) { m_isKey = b; } + bool isValid() { return !m_name.isEmpty() && !m_query.isEmpty(); } @@ -157,6 +161,7 @@ public: private: QString m_name; QString m_query; + bool m_isKey; }; QT_END_NAMESPACE |