https://bugs.kde.org/show_bug.cgi?id=371990

--- Comment #17 from Ralf Habacker <ralf.habac...@freenet.de> ---
Comment on attachment 102312
  --> https://bugs.kde.org/attachment.cgi?id=102312
Turn PinPortBase into real child widget.

A quick look shows that the following code 

+        foreach(QGraphicsItem* item, widget->childItems()) {
+            UMLWidget* child = dynamic_cast<UMLWidget*>(item);
+            QDomDocument doc;
+            m_children.append(doc.createElement(QLatin1String("child")));
+            child->saveToXMI(doc, m_children.back());
+        }
+

needs to goto into ComponentWidget::saveToXMI()

and this
+        foreach(QDomElement childElement, m_children) {
+            widgetElement = childElement.firstChild().toElement();
+            widget = umlScene->loadWidgetFromXMI(widgetElement);
+            if (0 != widget) {
+                addWidgetToScene(widget);
+            }
+        }

into ComponentWidget::loadToXMI() to support also saving to and loading from
file. 

If this is fixed I'm going to test this implementation. Thanks for
contribution.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to