[Kde-pim] Segfault calling EntityTree::headerData()

Tobias Koenig tokoe at kde.org
Mon Jul 27 09:06:57 BST 2009


On Sun, Jul 26, 2009 at 08:14:24PM +0200, Eduardo Robles Elvira wrote:
> Hello PIM people and specially Stephen Kelly :P
Hej Eduardo,

> I've created my own model which inherits EntityTreeModel. In my code,
> I do something like this:
> 
> 
> QVariant KonqBookmarkModel::headerData( int section, Qt::Orientation
> orientation, int role ) const
You shouldn't reimplement headerData() but getHeaderData() instead...

Have a look at kdepim/kcontactmanager/contactstreemodel.(h|cpp) for reference

Ciao,
Tobias
-- 
Separate politics from religion and economy!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20090727/ab1f9c34/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