summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-07-16 10:44:09 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-07-16 10:44:09 (GMT)
commit636698a5f97401a9aeb18cd690d7f08b05dcd5e6 (patch)
tree65050b764e1aeb3f002cd929ce443cb26ff98a2a /examples/declarative
parent8d8566d061e26f18e1bde1255fdc1375035c8eaa (diff)
parent975b1913e44128a3e9b9055f9bf2ff40d86adf2a (diff)
downloadQt-636698a5f97401a9aeb18cd690d7f08b05dcd5e6.zip
Qt-636698a5f97401a9aeb18cd690d7f08b05dcd5e6.tar.gz
Qt-636698a5f97401a9aeb18cd690d7f08b05dcd5e6.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: Fix RightBearing confusion in text layout fixes, improvements for various docs and example code Fixed debugger's evaluation of dynamic properties in context Allow test to pass on smaller screens (eg. 480 high). Minor animation doc improvement
Diffstat (limited to 'examples/declarative')
-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 {