177
183
const int fontHeight = fm.lineSpacing();
178
184
int textStartY = (h / 2) - (fontHeight / 2);
179
185
p.drawRoundRect(offsetX, offsetY, w, h, (h * 60) / w, 60);
181
187
p.setFont( UMLWidget::font() );
182
188
p.drawText(offsetX + ACTIVITY_MARGIN, offsetY + textStartY,
183
189
w - ACTIVITY_MARGIN * 2, fontHeight, Qt::AlignCenter, name());
188
194
p.setPen( QPen(m_LineColor, 1) );
189
195
p.setBrush( WidgetBase::lineColor() );
190
196
p.drawEllipse( offsetX, offsetY, w, h );
195
200
UMLWidget::setPenFromSettings(p);