[Uml-devel] branches/work/soc-umbrello/umbrello/widgets

Ralf Habacker ralf.habacker at gmail.com
Thu Aug 9 08:15:50 UTC 2012


SVN commit 1309861 by habacker:

Differences to trunk reduced.

 M  +16 -16    notewidget.cpp  


--- branches/work/soc-umbrello/umbrello/widgets/notewidget.cpp #1309860:1309861
@@ -144,22 +144,6 @@
 }
 
 /**
- * Reimplemented from UMLWidget::saveToXMI to save note widget
- * into XMI.
- */
-void NoteWidget::saveToXMI(QDomDocument& qDoc, QDomElement& qElement)
-{
-    QDomElement noteElement = qDoc.createElement( "notewidget" );
-    UMLWidget::saveToXMI( qDoc, noteElement );
-    noteElement.setAttribute("text", documentation());
-    if (m_diagramLink != Uml::id_None) {
-        noteElement.setAttribute( "diagramlink", ID2STR(m_diagramLink) );
-    }
-    noteElement.setAttribute( "noteType", m_noteType);
-    qElement.appendChild(noteElement);
-}
-
-/**
  * Reimplemented from UMLWidget::loadFromXMI to load note
  * widget info from XMI.
  */
@@ -178,6 +162,22 @@
 }
 
 /**
+ * Reimplemented from UMLWidget::saveToXMI to save note widget
+ * into XMI.
+ */
+void NoteWidget::saveToXMI(QDomDocument& qDoc, QDomElement& qElement)
+{
+    QDomElement noteElement = qDoc.createElement( "notewidget" );
+    UMLWidget::saveToXMI( qDoc, noteElement );
+    noteElement.setAttribute("text", documentation());
+    if (m_diagramLink != Uml::id_None) {
+        noteElement.setAttribute( "diagramlink", ID2STR(m_diagramLink) );
+    }
+    noteElement.setAttribute( "noteType", m_noteType);
+    qElement.appendChild(noteElement);
+}
+
+/**
  * Reimplemented from UMLWidget::updateGeometry to calculate
  * minimum size for this widget.
  */




More information about the umbrello-devel mailing list