[Icon Plasmoid] Provide a generic plasmoid class for icon based plasmoid
Aaron J. Seigo
aseigo at kde.org
Sat May 31 19:28:51 CEST 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080531/352cdb70/attachment.pgp
More information about the Panel-devel
mailing list