[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: [Panel-devel] Separate QGraphicsItems for applet
From:       Alex Merry <huntedhacker () tiscali ! co ! uk>
Date:       2007-08-31 23:08:55
Message-ID: 200709010009.01274.huntedhacker () tiscali ! co ! uk
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Friday 31 Aug 2007, Robert Knight wrote:
> > ah, i thought you were -also- unhappy with the fact that the
> > default implementation of contentSize() returns
> > layout()->sizeHint().
>
> Yes I am.  What I have locally is that contentSize() is non-virtual
> and returns geometry().size() minus the size of the border.  I added
> a new virtual contentSizeHint() method which applets re-implement to
> return an ideal size for their content.

Makes sense to me.  I was never entirely happy with contentSize() 
because it doesn't provide a way of forcing constraints on the applet 
easily.  At the time, I just wanted a way for the applet not to care 
about the border - they were all implementing boundingRect(), which 
meant they couldn't easily request or demand a certain size for the 
contents if Applet was drawing a background with a border.

If I'd thought about it, I'd have gone this route in the first place.

Alex

-- 
KDE: http://www.kde.org
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org

["signature.asc" (application/pgp-signature)]

_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic