Commit ea41f50f authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix 'Displayed interface name in the component diagram is not updated after...

Fix 'Displayed interface name in the component diagram is not updated after changing it in the properties dialog'

UMLWidget::showPropertiesDialog() could not be used here because it does
not know anything about the connected floating text widget.

BUG:403852
FIXED-IN:2.27.2 (KDE Applications 18.12.2)
parent a9ce7bc0
......@@ -1495,3 +1495,15 @@ void ClassifierWidget::slotShowOperations(bool state)
setVisualProperty(ShowOperations, state);
}
/**
* Show a properties dialog for a ClassifierWidget
*/
bool ClassifierWidget::showPropertiesDialog()
{
if (UMLWidget::showPropertiesDialog()) {
if (isInterfaceWidget() && visualProperty(DrawAsCircle))
m_pInterfaceName->setText(name());
return true;
}
return false;
}
......@@ -106,6 +106,8 @@ public:
virtual void saveToXMI1(QDomDocument & qDoc, QDomElement & qElement);
virtual bool loadFromXMI1(QDomElement & qElement);
virtual bool showPropertiesDialog();
public Q_SLOTS:
virtual void slotMenuSelection(QAction* action);
......
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