diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-07-16 08:11:36 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-07-18 04:24:07 (GMT) |
commit | 466a878c5df629759496ac68be1b4ce0527a78f0 (patch) | |
tree | 7dffea59f45d23caf8d5f0c791c4a84907a65c2c /examples | |
parent | f137dee009a63cd2dbef0f86e338e5b50730359c (diff) | |
download | Qt-466a878c5df629759496ac68be1b4ce0527a78f0.zip Qt-466a878c5df629759496ac68be1b4ce0527a78f0.tar.gz Qt-466a878c5df629759496ac68be1b4ce0527a78f0.tar.bz2 |
fixes, improvements for various docs and example code
(cherry picked from commit 1ea53e6055a7c4e9677a5003725785ad503bb242)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/modelviews/abstractitemmodel/model.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/declarative/modelviews/abstractitemmodel/model.cpp b/examples/declarative/modelviews/abstractitemmodel/model.cpp index d0e0971..940a44d 100644 --- a/examples/declarative/modelviews/abstractitemmodel/model.cpp +++ b/examples/declarative/modelviews/abstractitemmodel/model.cpp @@ -67,7 +67,9 @@ AnimalModel::AnimalModel(QObject *parent) void AnimalModel::addAnimal(const Animal &animal) { + beginInsertRows(QModelIndex(), rowCount(), rowCount()); m_animals << animal; + endInsertRows(); } int AnimalModel::rowCount(const QModelIndex & parent) const { |