Some binary compatibility advice

Olivier Goffart ogoffart at
Tue Dec 16 07:31:29 GMT 2008

Le mardi 16 décembre 2008, Rafael Fernández López a écrit :

> Now, the new KCategorizedView will support block collapsing/expanding. As
> you might guess, the view, when a category rect has been clicked (and
> wasn't an item), will tell the KCategoryDrawer where the click happened. It
> will have to determine if it was a hot point (in relative terms of
> position, because it draws the marks for collapsing or whatever), and it
> should be able to emit a signal.
> But, KCategoryDrawer hasn't got a hook, and neither inherits QObject.
> So, my idea was something like what Qt does with QStyleOptionViewItem.
> I could write a KCategoryDrawerV2 inheriting KCategoryDrawer and QObject.
> Would that fix the issue for now ?

The V2 approach should just work.

> Any ideas on how to fix that problem, or I could let implemented internally
> the collapse/expand feature, and just wait for KDE 5 to correctly support
> it ?

Don't wait for KDE5,  KDE5 is for a distant future.
-------------- 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: <>

More information about the kde-core-devel mailing list