[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Creating a rectangular icon
From: Antony Loebs <barefootedjournalist () gmail ! com>
Date: 2010-03-04 0:17:12
Message-ID: 469a3d631003031617w2166bdeax74f9d36ab70051f5 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Wed, Mar 3, 2010 at 5:58 PM, Aaron J. Seigo <aseigo@kde.org> wrote:
> On March 3, 2010, Antony Loebs wrote:
> > Hmm...I added the following
> > def paintEvent(self, event):
> > size = self.geometry()
> > height = size.height()
> > self.resize(height * 4, height)
> >
> > But that doesn't work. Do I need to completely re-implement drawing the
> > pixmap in paintEvent?
>
> yes; which isn't hard (it's one call). and you don't want to be resizing
> yourself in the paintEvent (that has the potential for endless looping due
> to
> resize -> repaint -> resize..)
>
[Attachment #5 (text/html)]
<br><br><div class="gmail_quote">On Wed, Mar 3, 2010 at 5:58 PM, Aaron J. Seigo <span \
dir="ltr"><<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; \
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <div><div></div><div \
class="h5">On March 3, 2010, Antony Loebs wrote:<br>
> Hmm...I added the following<br>
> def paintEvent(self, event):<br>
> size = self.geometry()<br>
> height = size.height()<br>
> self.resize(height * 4, height)<br>
><br>
> But that doesn't work. Do I need to completely re-implement drawing the<br>
> pixmap in paintEvent?<br>
<br>
</div></div>yes; which isn't hard (it's one call). and you don't want to \
be resizing<br> yourself in the paintEvent (that has the potential for endless \
looping due to<br> resize -> repaint -> resize..)<br></blockquote><div><br> \
<br></div></div><br>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic