summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qabstractitemmodel.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-07-30 02:05:11 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-07-31 01:23:42 (GMT)
commitc257996dfdc87b9a9682d35419792730e477d3ac (patch)
tree20f0af6513585089cbae6667fea62f6c9576a052 /src/corelib/kernel/qabstractitemmodel.h
parent13e3bbf2c46077f2b970bc6c0bc9850112b81cb7 (diff)
downloadQt-c257996dfdc87b9a9682d35419792730e477d3ac.zip
Qt-c257996dfdc87b9a9682d35419792730e477d3ac.tar.gz
Qt-c257996dfdc87b9a9682d35419792730e477d3ac.tar.bz2
Make setRoleNames() protected and improve docs.
(cherry picked from commit 15be8a6b259a5cb4f528b1c765bfcddfc9edd044) Authored-by: Martin Jones Reviewed-by: mbm
Diffstat (limited to 'src/corelib/kernel/qabstractitemmodel.h')
-rw-r--r--src/corelib/kernel/qabstractitemmodel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/kernel/qabstractitemmodel.h b/src/corelib/kernel/qabstractitemmodel.h
index dc7d7bd..a6bbff4 100644
--- a/src/corelib/kernel/qabstractitemmodel.h
+++ b/src/corelib/kernel/qabstractitemmodel.h
@@ -220,6 +220,8 @@ public:
Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const;
virtual QSize span(const QModelIndex &index) const;
+ const QHash<int,QByteArray> &roleNames() const;
+
#ifdef Q_NO_USING_KEYWORD
inline QObject *parent() const { return QObject::parent(); }
#else
@@ -282,6 +284,8 @@ protected:
void changePersistentIndexList(const QModelIndexList &from, const QModelIndexList &to);
QModelIndexList persistentIndexList() const;
+ void setRoleNames(const QHash<int,QByteArray> &roleNames);
+
private:
Q_DECLARE_PRIVATE(QAbstractItemModel)
Q_DISABLE_COPY(QAbstractItemModel)