diff options
author | Martin Smith <msmith@trolltech.com> | 2009-05-11 09:36:24 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2009-05-11 09:36:24 (GMT) |
commit | 936b9b898830c9d5e05be5da584a20b28db78e11 (patch) | |
tree | b1cf5165219ad82168c8d187329f58c66cceb9ef /src/declarative/3rdparty | |
parent | 447b79e7c497c93429c25d883dfac954868483a2 (diff) | |
download | Qt-936b9b898830c9d5e05be5da584a20b28db78e11.zip Qt-936b9b898830c9d5e05be5da584a20b28db78e11.tar.gz Qt-936b9b898830c9d5e05be5da584a20b28db78e11.tar.bz2 |
qdoc: Fixed some qdoc errors.
Diffstat (limited to 'src/declarative/3rdparty')
-rw-r--r-- | src/declarative/3rdparty/qlistmodelinterface.cpp | 25 | ||||
-rw-r--r-- | src/declarative/3rdparty/qlistmodelinterface.h | 4 |
2 files changed, 19 insertions, 10 deletions
diff --git a/src/declarative/3rdparty/qlistmodelinterface.cpp b/src/declarative/3rdparty/qlistmodelinterface.cpp index d327b58..75960a1 100644 --- a/src/declarative/3rdparty/qlistmodelinterface.cpp +++ b/src/declarative/3rdparty/qlistmodelinterface.cpp @@ -69,13 +69,13 @@ QT_BEGIN_NAMESPACE Returns the number of data entries in the model. */ -/*! \fn QHash_int QListModelInterface::data(int index, const QList<int> &roles) const +/*! \fn QHash<int,QVariant> QListModelInterface::data(int index, const QList<int>& roles) const Returns the data at the given \a index for the specifed \a roles. */ -/*! \fn bool QListModelInterface::setData(int index, const QHash<int> &values) +/*! \fn bool QListModelInterface::setData(int index, const QHash<int,QVariant>& values) Sets the data at the given \a index. \a values is a mapping of - QVariant values to roles. + QVariant values to roles. Returns false. */ /*! \fn QList<int> QListModelInterface::roles() const @@ -87,13 +87,22 @@ QT_BEGIN_NAMESPACE Returns a string description of the specified \a role. */ -/*! \enum QListModelInterface::Roles +/*! \fn void QListModelInterface::itemsInserted(int index, int count) + Emit this signal when \a count items are inserted at \a index. + */ - Values for representing roles. +/*! \fn void QListModelInterface::itemsRemoved(int index, int count) + Emit this signal when \a count items are removed at \a index. + */ - \value TextRole +/*! \fn void QListModelInterface::itemsMoved(int from, int to, int count) + Emit this signal when \a count items are moved from index \a from + to index \a to. + */ - \value IconRole -*/ +/*! \fn void QListModelInterface::itemsChanged(int index, int count, const QList<int> &roles) + Emit this signal when \a count items at \a index have had their + \a roles changed. + */ QT_END_NAMESPACE diff --git a/src/declarative/3rdparty/qlistmodelinterface.h b/src/declarative/3rdparty/qlistmodelinterface.h index 191a95b..19284ca 100644 --- a/src/declarative/3rdparty/qlistmodelinterface.h +++ b/src/declarative/3rdparty/qlistmodelinterface.h @@ -61,8 +61,8 @@ class Q_DECLARATIVE_EXPORT QListModelInterface : public QObject virtual ~QListModelInterface() {} 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) + 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; } virtual QList<int> roles() const = 0; |