[Uml-devel] [Bug 66461] Widgets (classes, enum...) are not wide enough

Peter Soetens peter.soetens at mech.kuleuven.ac.be
Thu Aug 25 08:36:33 UTC 2005

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

------- Additional Comments From peter.soetens mech kuleuven ac be  2005-08-25 17:09 -------
Created an attachment (id=12370)
 --> (http://bugs.kde.org/attachment.cgi?id=12370&action=view)
PATH Fixes to narrow classifier boxes for italics and templates

This patch fixes two bugs (trunk, today):

After digging trough the classifier code, I found that the QFontMetric was not
correctly used to measure _italic_ text, such as abstract classes/functions.
The old method used fnt.width("string"), which returns the minimal width after
which you may place the next character. You needed to use
fnt.size(0,"string").width(), which returns the full bounding box (QBox) and
which width is the actual width we need.

Next, when templates were used, the template-added pixelwidth was added at the
wrong place, discarding it actually.

Tested and looks beautiful !


More information about the umbrello-devel mailing list