Bug 156780

Summary: Word wrapping in KMessageBox::error
Product: [Unmaintained] kdelibs Reporter: Michaël Todorovic <michael.todorovic>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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