[Panel-devel] Plasma::LineEdit / QGraphicsTextItem: maximum height

Aaron J. Seigo aseigo at kde.org
Thu Jul 26 18:38:30 CEST 2007


On Thursday 26 July 2007, Thomas Georgiou wrote:
> On Thursday 26 July 2007 12:28:42 pm Aaron J. Seigo wrote:
> > On Thursday 26 July 2007, Lukas Kropatschek wrote:
> > > setTextWidth()). But there must be a way to set the height or maximum
> > > number of lines or whatever, just that this LineEdit clips to the size
> > > of the applet.
> >
> > there are two ways:
> >
> > - subclass lineedit and reimplement boundingRect
> > - we extend Plasma::Widget to have a setMaximumSize which overrieds
> > boundingRect.
>
> but what would happen to text that does not fit withing the size?

it... scrolls?

-- 
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: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070726/0ec4acfa/attachment.pgp 


More information about the Panel-devel mailing list