diff options
author | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-06-10 16:25:48 +0200 |
---|---|---|
committer | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-06-18 13:57:46 +0200 |
commit | 602937ee29a58ffcf581d93e64549e4beb747834 (patch) | |
tree | ff65c702e8d43958a4d7ae7b2ddd9b03a2e65b14 /src/qtablemodelinterface.h | |
parent | becd6694bcb181b3f636a3bfdab4c8366062d8a7 (diff) |
Add QHash<int,QString> roles() const function to the model interfaces. This is used by the declarative ui to map from the role enum to the name string.
Diffstat (limited to 'src/qtablemodelinterface.h')
-rw-r--r-- | src/qtablemodelinterface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qtablemodelinterface.h b/src/qtablemodelinterface.h index cab8306..78f6dad 100644 --- a/src/qtablemodelinterface.h +++ b/src/qtablemodelinterface.h @@ -44,6 +44,7 @@ public: virtual int columnCount() const = 0; virtual QHash<int,QVariant> data(int row, int column, const QList<int> &roles = QList<int>()) const = 0; virtual bool setData(int row, int column, const QHash<int,QVariant> &values); + virtual QHash<int,QString> roles() const; // ### we may need something along the lines of cacheHint() that gives the model an idea // ### of what can be kept, what can be thrown away and what needs to be fetched |