summaryrefslogtreecommitdiffstats
path: root/src/qtablemodelinterface.h
diff options
context:
space:
mode:
authorMarius Bugge Monsen <mmonsen@trolltech.com>2009-06-10 16:25:48 +0200
committerMarius Bugge Monsen <mmonsen@trolltech.com>2009-06-18 13:57:46 +0200
commit602937ee29a58ffcf581d93e64549e4beb747834 (patch)
treeff65c702e8d43958a4d7ae7b2ddd9b03a2e65b14 /src/qtablemodelinterface.h
parentbecd6694bcb181b3f636a3bfdab4c8366062d8a7 (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.h1
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