[PATCH] text in KStatusBar changing resizes KMainWindow
Frerich Raabe
raabe at kde.org
Sun Feb 8 16:37:06 GMT 2004
On Sun, Feb 08, 2004 at 03:21:29PM +0000, Richard Smith wrote:
> If the text in a KStatusBar is changed to be longer than the length of the
> text box, the window containing it resizes to accomodate the text. Currently
> Konqueror and Kopete work around this with KSqueezedTextLabels. The attached
> patch solves the problem at its core, by deriving KStatusBarLabel from
> KSqueezedTextLabel.
I'm not sure it's always desireable not to resize the window in case the
text in the status bar gets changed, so this seems a little like overkill
to me.
Instead of inheriting KSqueezedTextLabel, maybe you could add a "squeezeText"
property to it. If it's true, KSqueezedTextLabel's setText() and resizeEvent()
methods could use KStringHandler::cPixelSqueeze to make the text fit into
the current bounding rectangle.
- Frerich
--
if new true friend not protected for explicit private union, break
case and try using this.
More information about the kde-core-devel
mailing list