[umbrello] [Bug 423660] Class Diagram Widget Text Truncated Upon Re-Opening XMI

Ralf Habacker bugzilla_noreply at kde.org
Tue Jun 30 23:57:58 BST 2020


https://bugs.kde.org/show_bug.cgi?id=423660

--- Comment #2 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Stanley Rekofsky from comment #0)
> Upon saving the XMI and re-opening the XMI on the same device/display
> all Class widgets have the text information in them truncated.

>From inspecting the source it looks that the clipping happens in
ClassifierWidget::drawMembers() where class attributes and operations are
displayed. Inside the method a call to 

    painter->drawText(x, y, fontMetrics.size(0, text).width(), fontHeight,
Qt::AlignVCenter, text);

is performed, where the text width in pixel is determined by the term
`fontMetrics.size(0, text).width()`.

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


More information about the umbrello-devel mailing list