aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/models/abstractitemmodel/model.h
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@digia.com>2012-12-06 14:54:32 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-12 00:32:24 +0100
commit87d0c02fab03b7d3bf2094af22465f029bcdd096 (patch)
tree219bce198a3cc77e44a7b2f47ba67d2490972a7e /examples/quick/models/abstractitemmodel/model.h
parent00f65e486a7c959bb240e1b41f641cbe538d40a1 (diff)
Fixed abstractitemmodel example
Change-Id: I1e85fd3f35f4f3d80e3fb599ae95b771db5f949b Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/quick/models/abstractitemmodel/model.h')
-rw-r--r--examples/quick/models/abstractitemmodel/model.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/models/abstractitemmodel/model.h b/examples/quick/models/abstractitemmodel/model.h
index 9436770b19..2db178bae1 100644
--- a/examples/quick/models/abstractitemmodel/model.h
+++ b/examples/quick/models/abstractitemmodel/model.h
@@ -74,6 +74,8 @@ public:
QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
+protected:
+ QHash<int, QByteArray> roleNames() const;
private:
QList<Animal> m_animals;
//![2]