Commit 2ba73e22 authored by Ralf Habacker's avatar Ralf Habacker

Move code of corresponding widgets in AssociationWidget::clipSize() to the...

Move code of corresponding widgets in AssociationWidget::clipSize()  to the AssociationWidgetRole class

CCBUG:53369
parent a37f2c1e
......@@ -3916,23 +3916,8 @@ void AssociationWidget::clipSize()
if (m_nameWidget)
m_nameWidget->clipSize();
if (m_role[RoleType::A].multiplicityWidget)
m_role[RoleType::A].multiplicityWidget->clipSize();
if (m_role[RoleType::B].multiplicityWidget)
m_role[RoleType::B].multiplicityWidget->clipSize();
if (m_role[RoleType::A].roleWidget)
m_role[RoleType::A].roleWidget->clipSize();
if (m_role[RoleType::B].roleWidget)
m_role[RoleType::B].roleWidget->clipSize();
if (m_role[RoleType::A].changeabilityWidget)
m_role[RoleType::A].changeabilityWidget->clipSize();
if (m_role[RoleType::B].changeabilityWidget)
m_role[RoleType::B].changeabilityWidget->clipSize();
m_role[RoleType::A].clipSize();
m_role[RoleType::B].clipSize();
if (m_associationClass)
m_associationClass->clipSize();
......
......@@ -91,3 +91,15 @@ void AssociationWidgetRole::setSelected(bool select)
if (changeabilityWidget)
changeabilityWidget->setSelected(select);
}
void AssociationWidgetRole::clipSize()
{
if (multiplicityWidget)
multiplicityWidget->clipSize();
if (roleWidget)
roleWidget->clipSize();
if (changeabilityWidget)
changeabilityWidget->clipSize();
}
......@@ -53,6 +53,7 @@ public:
UMLWidget *onWidget(const QPointF &p);
void setSelected(bool select);
void clipSize();
private:
AssociationWidget *m_q;
......
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