diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-05-10 23:54:34 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-05-10 23:54:34 (GMT) |
commit | de9825bf51ccb79f645c9ceeded3230c9be14175 (patch) | |
tree | cefe142bb73ec0d78eec62a2b1efda825a05eaba /src/declarative/3rdparty | |
parent | a365bd8f0cc53353ec8d3335ffec2d7810cf1d2a (diff) | |
download | Qt-de9825bf51ccb79f645c9ceeded3230c9be14175.zip Qt-de9825bf51ccb79f645c9ceeded3230c9be14175.tar.gz Qt-de9825bf51ccb79f645c9ceeded3230c9be14175.tar.bz2 |
Get QListModelInterface back in line with itemviews_ng.
Diffstat (limited to 'src/declarative/3rdparty')
-rw-r--r-- | src/declarative/3rdparty/qlistmodelinterface.cpp | 6 | ||||
-rw-r--r-- | src/declarative/3rdparty/qlistmodelinterface.h | 17 |
2 files changed, 0 insertions, 23 deletions
diff --git a/src/declarative/3rdparty/qlistmodelinterface.cpp b/src/declarative/3rdparty/qlistmodelinterface.cpp index e440cac..d327b58 100644 --- a/src/declarative/3rdparty/qlistmodelinterface.cpp +++ b/src/declarative/3rdparty/qlistmodelinterface.cpp @@ -78,12 +78,6 @@ QT_BEGIN_NAMESPACE QVariant values to roles. */ -/*! \fn bool QListModelInterface::setData(int index, const QVariant &value, int role) - This convenience function builds a QHash<int> from - the specified \a role and \a value and calls the other setData() - with the QHash and the \a index. -*/ - /*! \fn QList<int> QListModelInterface::roles() const Returns the list of roles for which the list model interface provides data. diff --git a/src/declarative/3rdparty/qlistmodelinterface.h b/src/declarative/3rdparty/qlistmodelinterface.h index fd69edd..191a95b 100644 --- a/src/declarative/3rdparty/qlistmodelinterface.h +++ b/src/declarative/3rdparty/qlistmodelinterface.h @@ -60,31 +60,14 @@ class Q_DECLARATIVE_EXPORT QListModelInterface : public QObject QListModelInterface(QObject *parent = 0) : QObject(parent) {} virtual ~QListModelInterface() {} - // ### move these into the Qt namespace - enum Roles { - TextRole = Qt::DisplayRole, - IconRole = Qt::DecorationRole - }; - virtual int count() const = 0; - virtual QHash<int,QVariant> data(int index, const QList<int> &roles = (QList<int>())) const = 0; - virtual bool setData(int index, const QHash<int,QVariant> &values) { Q_UNUSED(index); Q_UNUSED(values); return false; } - inline bool setData(int index, const QVariant &value, int role) - { - QHash<int,QVariant> values; - values.insert(role, value); - return setData(index, values); - } - virtual QList<int> roles() const = 0; virtual QString toString(int role) const = 0; - //void bind(int index, int role, QObject *object, const char *propertyName, bool readOnly = true); - Q_SIGNALS: void itemsInserted(int index, int count); void itemsRemoved(int index, int count); |