[Bug 172116] New: Long text lines in message boxes should be word-wrapped

Thomas Fischer fischer at unix-ag.uni-kl.de
Fri Oct 3 22:48:32 BST 2008


http://bugs.kde.org/show_bug.cgi?id=172116

           Summary: Long text lines in message boxes should be word-wrapped
           Product: kde
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: fischer at unix-ag.uni-kl.de


Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

Long text lines in message boxes are not wrapped by default resulting in one
long line that is shorted by replacing the middle part of the text with "...".
A better solution would be to put <p> tags around the text which make Qt to
wrap the text according to the message boxes size.

An example is kdebase/workspace/kwin/kcmkwin/kwincompositing/main.cpp (as of
rev 866903) which contains the following KMessageBox call if the composite
stuff fails to work.

KMessageBox::sorry( this, i18n(
 "Failed to activate desktop effects using the given "
 "configuration options. Settings will be reverted to their previous
values.\n\n"
 "Check your X configuration. You may also consider changing advanced options,
"
 "especially changing the compositing type." ));

The actual message box shows the text as follows:
"Failed to activate desktop effects using the given ...Settings will be
reverted to their previous values.
Check your X configuration. You may also conside...tions, especially changing
the compositing type."

It requires the user to enlarge the window to read the whole text.

I suggest to check the whole source tree with some script for KMessageBox calls
with long lines. Then, either the text can be placed in <p>..</p> tags or some
manual editing can be performed. In this step, "\n\n" could be replaced by a
closing and opening <p> tag.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list