summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/elasticnodes/edge.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphicsview/elasticnodes/edge.h')
-rw-r--r--examples/graphicsview/elasticnodes/edge.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/graphicsview/elasticnodes/edge.h b/examples/graphicsview/elasticnodes/edge.h
index b6b951f..58cc89c 100644
--- a/examples/graphicsview/elasticnodes/edge.h
+++ b/examples/graphicsview/elasticnodes/edge.h
@@ -46,17 +46,14 @@
class Node;
+//! [0]
class Edge : public QGraphicsItem
{
public:
Edge(Node *sourceNode, Node *destNode);
- ~Edge();
Node *sourceNode() const;
- void setSourceNode(Node *node);
-
Node *destNode() const;
- void setDestNode(Node *node);
void adjust();
@@ -74,5 +71,6 @@ private:
QPointF destPoint;
qreal arrowSize;
};
+//! [0]
#endif