[Uml-devel] branches/work/soc-umbrello/umbrello/widgets
Ralf Habacker
ralf.habacker at gmail.com
Tue Dec 13 13:03:03 UTC 2011
SVN commit 1268453 by habacker:
corrected the wrong impression about where to document methods as done in several headers
M +17 -0 boxwidget.cpp
M +0 -17 boxwidget.h
--- branches/work/soc-umbrello/umbrello/widgets/boxwidget.cpp #1268452:1268453
@@ -11,6 +11,11 @@
// own header
#include "boxwidget.h"
+/**
+ * Constructs a BoxWidget.
+ *
+ * @param id The ID to assign (-1 will prompt a new ID.)
+ */
BoxWidget::BoxWidget(Uml::IDType id)
: UMLWidget(0)
{
@@ -20,10 +25,18 @@
setZValue(-10);
}
+/**
+ * Constructs a BoxWidget.
+ *
+ * @param id The ID to assign (-1 will prompt a new ID.)
+ */
BoxWidget::~BoxWidget()
{
}
+/**
+ * Draws a rectangle.
+ */
void BoxWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *o, QWidget *)
{
Q_UNUSED(o);
@@ -32,6 +45,10 @@
painter->drawRect(rect());
}
+/**
+ * Saves the widget to the "boxwidget" XMI element.
+ * Note: For loading from XMI, the inherited parent method is used.
+ */
void BoxWidget::saveToXMI(QDomDocument& qDoc, QDomElement& qElement)
{
QDomElement boxElement = qDoc.createElement("boxwidget");
--- branches/work/soc-umbrello/umbrello/widgets/boxwidget.h #1268452:1268453
@@ -30,27 +30,10 @@
class BoxWidget : public UMLWidget
{
public:
- /**
- * Constructs a BoxWidget.
- *
- * @param id The ID to assign (-1 will prompt a new ID.)
- */
explicit BoxWidget(Uml::IDType id = Uml::id_None);
-
- /**
- * destructor
- */
virtual ~BoxWidget();
- /**
- * Draws a rectangle.
- */
virtual void paint(QPainter *p, const QStyleOptionGraphicsItem *item, QWidget *w);
-
- /**
- * Saves the widget to the "boxwidget" XMI element.
- * Note: For loading from XMI, the inherited parent method is used.
- */
virtual void saveToXMI(QDomDocument& qDoc, QDomElement& qElement);
};
More information about the umbrello-devel
mailing list