summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukáš Lalinský <lalinsky@gmail.com>2009-01-09 10:34:27 +0100
committerLukáš Lalinský <lalinsky@gmail.com>2009-01-09 10:34:27 +0100
commit53cb3f96c7de59694767156b309e1962a3d49471 (patch)
treedbd5bc6f9c675d2f76c35f8a7faf211fd6f98b29 /src
parentecc06f131cb73bf9920b52982494846aeeeed345 (diff)
downloaddbmodel-53cb3f96c7de59694767156b309e1962a3d49471.tar.xz
Add some documentation to Line
Diffstat (limited to 'src')
-rw-r--r--src/line.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/line.h b/src/line.h
index a79abe4..79ea0c4 100644
--- a/src/line.h
+++ b/src/line.h
@@ -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: