[Uml-devel] KDE/kdesdk/umbrello/umbrello/widgets

Ralf Habacker ralf.habacker at gmail.com
Thu Dec 15 23:01:31 UTC 2011


SVN commit 1268849 by habacker:

merged in non QGraphicsScene related changes from soc-umbrello branch for ActivityWidget

 M  +3 -1      artifactwidget.cpp  
 M  +5 -3      artifactwidget.h  


--- trunk/KDE/kdesdk/umbrello/umbrello/widgets/artifactwidget.cpp #1268848:1268849
@@ -38,7 +38,8 @@
 }
 
 /**
- * Overrides standard method
+ * Reimplemented to paint the articraft widget. Some part of specific
+ * drawing is delegeted to private method like drawAsFile..
  */
 void ArtifactWidget::paint(QPainter& p, int offsetX, int offsetY)
 {
@@ -64,6 +65,7 @@
     case UMLArtifact::table:
         return drawAsTable(p, offsetX, offsetY);
         break;
+
     default:
         uWarning() << "Artifact drawn as unknown type";
         break;
--- trunk/KDE/kdesdk/umbrello/umbrello/widgets/artifactwidget.h #1268848:1268849
@@ -31,13 +31,14 @@
 class ArtifactWidget : public UMLWidget
 {
 public:
-
     ArtifactWidget(UMLScene *scene, UMLArtifact *a);
     virtual ~ArtifactWidget();
 
-    void paint(QPainter& p, int offsetX, int offsetY);
+    virtual void paint(QPainter& p, int offsetX, int offsetY);
 
-    void saveToXMI(QDomDocument& qDoc, QDomElement& qElement);
+    // Note: For loading from XMI, the inherited parent method is
+    //       used.
+    virtual void saveToXMI(QDomDocument& qDoc, QDomElement& qElement);
 
 protected:
     QSize calculateSize();
@@ -52,6 +53,7 @@
     void drawAsTable(QPainter& p, int offsetX, int offsetY);
     void drawAsNormal(QPainter& p, int offsetX, int offsetY);
 
+
     /**
      * The right mouse button menu
      */




More information about the umbrello-devel mailing list