[Kde-pim] Akonadi::CollectionView wrapping model

Kevin Krammer kevin.krammer at gmx.at
Sat Mar 1 21:42:07 GMT 2008


Hi folks,

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?

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20080301/9386365f/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