diff options
author | Oliver Wolff <oliver.wolff@digia.com> | 2012-12-06 14:54:32 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-12 00:32:24 +0100 |
commit | 87d0c02fab03b7d3bf2094af22465f029bcdd096 (patch) | |
tree | 219bce198a3cc77e44a7b2f47ba67d2490972a7e /examples/quick/models/abstractitemmodel/model.h | |
parent | 00f65e486a7c959bb240e1b41f641cbe538d40a1 (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.h | 2 |
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] |