Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, May 2007
QSortFilterProxyModel::setData does not provide a default value for the role, qt-4.3-20070510


Message 1 in thread

unlike the other model classes, QSortFilterProxyModel defines the setData in 
the following way:

bool setData(const QModelIndex &index, const QVariant &value, int role);

for comparison the one from QAbstractItemModel:

virtual bool setData(const QModelIndex &index, const QVariant &value, int role 
= Qt::EditRole);


the missing default value is not even mentioned in the documentation

Attachment:

Attachment: signature.asc
Description: This is a digitally signed message part.


Message 2 in thread

On Monday 14 May 2007 00:00:14 Nico Kruber wrote:
> unlike the other model classes, QSortFilterProxyModel defines the setData
> in the following way:
>
> bool setData(const QModelIndex &index, const QVariant &value, int role);
>
> for comparison the one from QAbstractItemModel:
>
> virtual bool setData(const QModelIndex &index, const QVariant &value, int
> role = Qt::EditRole);
>
>
> the missing default value is not even mentioned in the documentation

Thanks for catching this, it (along with headerData() and setHeaderData() have 
been fixed)

-Benjamin Meyer

Attachment:

Attachment: pgpGMrOkYHYaZ.pgp
Description: PGP signature