[Panel-devel] Propsed change: boundingRect() vs. contentSize()

Alex Merry huntedhacker at tiscali.co.uk
Wed Jul 25 18:48:40 CEST 2007


On Wednesday 25 Jul 2007, Rafael Fernández López wrote:
>  Hi all,
>
> Since plasma project was started with QGV, I have always wondered
> (and I have always missed) a parameter on boundingRect() method. I
> know is more a Qt issue, but probably we can fill this gap if we
> think it is so. The parameter is the QStyleOptionGraphicsItem, that
> is passed on the paint() method. There is some valuable information
> as the fontMetrics, or the state. That is sometimes necessary to
> decide what is the size of the plasmoid.

Unfortunately, I don't think we have the necessary information 
available.  I think it's passed down by QGraphicsView in the paint() 
method, and not available from elsewhere before that.

Not that I've looked very hard, but if it was, what would be the point 
of making it an argument to paint()?

Alex



-- 
KDE: http://www.kde.org
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070725/40a30277/attachment.pgp 


More information about the Panel-devel mailing list