[Uml-devel] kdesdk/umbrello/umbrello
Sebastian Stein
seb.kde at hpfsc.de
Sun Feb 1 10:24:05 UTC 2004
CVS commit by sstein:
fix bug #73278: changing the name of a state causes it to be drawn in bold
This now works in HEAD, I will backport the fix to KDE 3.2 in some days, so
that the problem will be solved with KDE 3.2.1. When I have done this, I will
close the bug report.
M +3 -1 statewidget.cpp 1.15
--- kdesdk/umbrello/umbrello/statewidget.cpp #1.14:1.15
@@ -44,5 +44,7 @@ void StateWidget::draw(QPainter & p, int
p.drawRoundRect(offsetX, offsetY, w, h, (h*40)/w, (w*40)/h);
p.setPen(black);
- p.setFont(UMLWidget::getFont());
+ QFont font = UMLWidget::getFont();
+ font.setBold( false );
+ p.setFont( font );
p.drawText(offsetX + STATE_MARGIN, offsetY + textStartY, w - STATE_MARGIN * 2, fontHeight, AlignCenter, getName());
p.setPen(UMLWidget::getLineColour());
More information about the umbrello-devel
mailing list