diff options
author | Lukáš Lalinský <lalinsky@gmail.com> | 2009-01-09 10:34:27 +0100 |
---|---|---|
committer | Lukáš Lalinský <lalinsky@gmail.com> | 2009-01-09 10:34:27 +0100 |
commit | 53cb3f96c7de59694767156b309e1962a3d49471 (patch) | |
tree | dbd5bc6f9c675d2f76c35f8a7faf211fd6f98b29 /src | |
parent | ecc06f131cb73bf9920b52982494846aeeeed345 (diff) | |
download | dbmodel-53cb3f96c7de59694767156b309e1962a3d49471.tar.xz |
Add some documentation to Line
Diffstat (limited to 'src')
-rw-r--r-- | src/line.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -17,6 +17,8 @@ #ifndef DIAGRAMCONNECTION_H #define DIAGRAMCONNECTION_H +#include <QPolygonF> +#include <QPainterPath> #include "diagramitem.h" #include "diagramdocument.h" class Connector; @@ -47,22 +49,40 @@ public: virtual void loadFromXml(QDomElement element, DiagramDocument *document = 0); void saveToXml(QDomDocument doc, QDomElement element); + //! The path of the line QPolygonF linePoints() const; + + //! Set the path of the line void setLinePoints(const QPolygonF &points); + //! The style of the line Qt::PenStyle lineStyle() const; + + //! Set the style of the line void setLineStyle(Qt::PenStyle style); + //! Path of the start arrow QPainterPath startArrow() const; + + //! Set the path of the start arrow void setStartArrow(const QPainterPath &path); + //! Should the start arrow be filled? bool fillStartArrow() const; + + //! Set whether the start arrow should be filled. void setFillStartArrow(bool fill); + //! Path of the end arrow QPainterPath endArrow() const; + + //! Set the path of the end arrow void setEndArrow(const QPainterPath &path); + //! Should the end arrow be filled? bool fillEndArrow() const; + + //! Set whether the end arrow should be filled. void setFillEndArrow(bool fill); private: |