[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: kicker app stretching to full panel size works in kde 3.3.2 not
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2005-05-27 18:20:12
Message-ID: 200505271220.23507.aseigo () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Friday 27 May 2005 02:42, Stephen Ensor wrote:
> Any help would be greatly appreciated, here is my cpp file
attaching source files as files rather than inlining them makes it generally
easier to read them =)
> //WHERE THE STRETCHING IS DONE
>
> resize(maximumWidth(), maximumHeight());
>
> mainView->resize(maximumWidth(), maximumHeight());
your applet will almost certainly be resized. you could try setting a fixed
size on the applet, but that too is not what you want because this will break
if/when the panel changes size. setting a size in your ctor is not how to
achieve what you want, though.
> int browser::widthForHeight(int height) const
> {
> return width();
> }
> int browser::heightForWidth(int width) const
> {
> return height();
> }
these should return sane minimums
> return new browser(configFile, KPanelApplet::Normal,
KPanelApplet::Stretch, not Normal.
--
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic