[Kdelibs-bugs] [PATCH] Fixing KMessageBox cutoff texts
Andreas Pakulat
apaku at gmx.de
Thu Nov 1 19:17:27 CET 2007
On Donnerstag, 1. November 2007, Andreas Pakulat wrote:
> Hi,
>
> just had a look why all KMessageBoxes cut off their text and the
> problem seems to be the width/height calculation code in
> KMessageBox::createKMessageBox and the fact that the result is set as
> Fixed Size for the label.
>
> I don't quite understand why the contents width/height is calculated
> in the first place, so I just disabled the whole stuff and set a
> real margin on the label instead of changing its size. Looks more
> apropriate to me.
>
> So what am I missing here? Or can I just commit the attached patch to
> fix this?
Here's an updated version, it simply cuts of any text that makes the
dialog wider than 1/3rd of the current screen. That is for excessively
long lines the best we can do (without splitting up the line and doing
quite some font-metric-calculations).
Andreas
--
Never be led astray onto the path of virtue.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs_kdeui_kmsgbox_fix_label
Type: text/x-diff
Size: 2622 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kdelibs-bugs/attachments/20071101/9ed6f8c0/attachment.bin
More information about the Kdelibs-bugs
mailing list