diff options
author | Bea Lam <bea.lam@nokia.com> | 2011-07-14 16:29:05 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-20 08:22:07 +0200 |
commit | 9d6e4d98c0cae77a99a158a4cb3dff9d6f6313fe (patch) | |
tree | fd9fb1666f5a1cf76a73e051227df76f951602a6 /src/declarative/util | |
parent | 9b5f9c8056186c9cf3c40dbac66e5f90369339dc (diff) |
Add isEmpty() method
Change-Id: Ia0eadcd20b2f14433a7e3a89d97d7a21ec353aa5
Reviewed-on: http://codereview.qt.nokia.com/1628
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Diffstat (limited to 'src/declarative/util')
-rw-r--r-- | src/declarative/util/qdeclarativechangeset_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativechangeset_p.h b/src/declarative/util/qdeclarativechangeset_p.h index 364451759a..ec3429392b 100644 --- a/src/declarative/util/qdeclarativechangeset_p.h +++ b/src/declarative/util/qdeclarativechangeset_p.h @@ -138,6 +138,10 @@ public: void append(const QVector<Move> &moves) { m_moves += moves; } void append(const QVector<Change> &changes) { m_changes += changes; } + bool isEmpty() const { + return m_removes.empty() && m_inserts.empty() && m_moves.empty() && m_changes.empty(); + } + void clear() { m_removes.clear(); |