Bug 156780 - Word wrapping in KMessageBox::error
Summary: Word wrapping in KMessageBox::error
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-27 14:56 UTC by Michaël Todorovic
Modified: 2008-01-27 21:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michaël Todorovic 2008-01-27 14:56:38 UTC
Version:            (using KDE 4.0.0)
Installed from:    Unlisted Binary Package
OS:                Linux

In KDE 4.0.0 installed with debian experimental packages on debian testing, the KMessageBox::error() word wraps sentences. I can't resize the message box to avoid word wrapping.

You can see the box here : http://images3.hiboox.com/images/0408/h9qdb6qi.jpg
and the code I use : 
KMessageBox::error(this, i18n("Applet %1 already running !", selectedItem->name()) );

Resizing the box or de-activating word-wrapping would be great !
Comment 1 Urs Wolfer 2008-01-27 21:00:24 UTC
SVN commit 767327 by uwolfer:

Do only enable automatic wrapping for messages which are longer than one third of the current screen width. Otherwise some very short messages are displayed in three or more lines; only one word per line in some cases. You can still force line breaks with \n.
BUG:156780

 M  +8 -2      dialogs/kmessagebox.cpp  
 M  +2 -2      tests/kmessageboxtest.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=767327