diff options
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] |