[Kde-pim] Akonadi::CollectionView wrapping model

Volker Krause vkrause at kde.org
Sun Mar 2 11:08:56 GMT 2008


On Saturday 01 March 2008 22:42:07 Kevin Krammer wrote:
> Till and I just debugged a problem I had with a weird CollectionModel
> behavior.
> It turned out that the model was working correctly, but that it wasn't
> actually the model used by the view because CollectionView::setModel
> "wraps" it, i.e.  uses it as a source model for an internal one.
>
> Basically
> view->setModel( myModel );
> model = view->model();
>
> model != myModel
>
> Not what I had expected.
> Anything we can do about this?

I think this is only used to get built in sorting in the view, so we can 
problem remove that. Originally it was needed for a lot more IIRC, mostly 
because my total misuse of the model/view stuff, the collection model/view 
was my first interview experiment. Most of this probably has been cleaned up 
by now, but if you still find strange stuff in there, that's why ;-)

regards
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20080302/40bbd7f7/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list