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

List:       kde-panel-devel
Subject:    Re: [Icon Plasmoid] Provide a generic plasmoid class for icon based
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2008-05-31 17:28:51
Message-ID: 200805311128.51494.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Saturday 31 May 2008, Loïc Marteau wrote:
> void ShowDesktop::constraintsEvent(Plasma::Constraints constraints)
> {
>     m_icon->resize(contentsRect().size());
> }

if you put your icon in a layout, this shouldn't be necessary:

QGraphicsLineartLayout *layout = new QGraphicsLineartLayout(this);
layout->setContentsMargins(0,0,0,0);
layout->setSpacing(0);
layout->addItem(m_icon);

> I think that such icon plasmoid should be a little more little (*0.75
> would be fine) and still take too much unused width space (it is much
> better with setAspectRatioMode(Plasma::Square) but still not perfect).
> Question 3 :
> How can i do to reduce the size to 75 % ?

looking at your screenshot, i can see  what you are trying to do (make all the 
icons similar/the same size) but this isn't the approach to take as it doesn't 
follow 

> Question 4 :
> It is possible to reduce the width of unused space when we use the
> setAspectRatioMode(Plasma::Square) shortcut ?

then it really isn't square, is it? =)

in the case of the icons, we probably don't actually want to be using 
Plasma::Square, but just set the size policy to be minimum for the growth 
direction (horizontally on horizontal panels, vertically on vertical panels)

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

KDE core developer sponsored by Trolltech


["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