[Kde-pim] Using an EntityMimeTypeFilterModel to show Items only

Kevin Krammer krammer at kde.org
Sun Aug 26 11:50:44 BST 2012


On Sunday, 2012-08-26, Marcus Harrison wrote:
> On Sunday 26 Aug 2012 03:14:42 Kevin Krammer wrote:
> > Hi Marcus,
> > 
> > On Sunday, 2012-08-26, Marcus Harrison wrote:
> > > Hello everyone,
> > > I've started writing an E-mail client using Akonadi and I'm having
> > > trouble.
> > > I'm trying to configure a model that only contains E-mail items, not
> > > collections.
> > 
> > Depending on what effect you want to achieve, check
> > EntityTreeModel::setCollectionFetchStrategy() and value
> > InvisibleCollectionFetch
> > 
> > Cheers,
> > Kevin
> 
> Thanks! This works exactly as I wanted. It also means I can get rid of the
> filtermodel all together (I think).

Very likely.

> Out of curiosity, could the problem have been that I hadn't set an
> itemPopulationStrategy? Whatever the problem is with
> EntityMimeTypeFilterModel, it's very strange...

Can't be sure but my guess would be that the filtering of the rather complex 
data of th EntityTreeModel is just hard to get right, i.e. might be a 
limitation of the filter model.

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: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20120826/8c4d1da3/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