[Panel-devel] Finishing up the Layout Stuff

Aaron J. Seigo aseigo at kde.org
Thu Jun 21 06:00:45 CEST 2007


On Wednesday 20 June 2007, Matias Valdenegro T. wrote:
> d-Pointer : QGraphicsItem *item; (The item to manage and it's children)
> protected:
> 	void setItem(QGraphicsItem *item);
>
> So, on your widget, you inherit LayoutItem and QGraphicsItem (Directly or
> indirectly) and call setItem(this), so i have a pointer to the item.

sounds sane; i wonder if you can pass "this" in on the initialization list to 
a superclass like that, so we could have LayoutItem(QGraphicsItem* 
thisItem) .. don't know if that would work in practice or not..

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

Full time KDE developer sponsored by Trolltech (http://www.trolltech.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070620/743ce357/attachment.pgp 


More information about the Panel-devel mailing list