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

Aaron J. Seigo aseigo at kde.org
Thu Jul 26 18:28:42 CEST 2007


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.

i actually like the latter as it seems to be something of a current weakness 
in the layout system.

-- 
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/d6200b0d/attachment.pgp 


More information about the Panel-devel mailing list