Commit 9676daf8 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Keep getting widget name in ClassifierWidget::paint() in sync with...

Keep getting widget name in ClassifierWidget::paint() in sync with ClassifierWidget::calculateSize().

ClassifierWidget does not work without an UMLObject instance; checking
UMLWidget::m_Text makes no sense.
parent 09347ceb
......@@ -695,6 +695,7 @@ AssociationWidget *ClassifierWidget::classAssociationWidget() const
/**
* Overrides standard method.
* Auxiliary to reimplementations in the derived classes.
* @NOTE keep fetching attributes in sync with calculateSize()
*/
void ClassifierWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
......@@ -787,7 +788,7 @@ void ClassifierWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *
if (visualProperty(ShowPackage)) {
name = m_umlObject->fullyQualifiedName();
} else {
name = this->name();
name = m_umlObject->name();
}
QString displayedName;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment