summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-07-16 08:11:36 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-07-16 08:12:18 (GMT)
commit1ea53e6055a7c4e9677a5003725785ad503bb242 (patch)
treea44d37e563d29a1f620c7c100e1a398d64257a34 /examples
parentae39a510f86fd13d6d41bc85d4f5c243eca45eab (diff)
downloadQt-1ea53e6055a7c4e9677a5003725785ad503bb242.zip
Qt-1ea53e6055a7c4e9677a5003725785ad503bb242.tar.gz
Qt-1ea53e6055a7c4e9677a5003725785ad503bb242.tar.bz2
fixes, improvements for various docs and example code
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/modelviews/abstractitemmodel/model.cpp2
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 {