summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/elasticnodes/graphwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphicsview/elasticnodes/graphwidget.h')
-rw-r--r--examples/graphicsview/elasticnodes/graphwidget.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/graphicsview/elasticnodes/graphwidget.h b/examples/graphicsview/elasticnodes/graphwidget.h
index 6f67b4e..3f78a5f 100644
--- a/examples/graphicsview/elasticnodes/graphwidget.h
+++ b/examples/graphicsview/elasticnodes/graphwidget.h
@@ -46,12 +46,13 @@
class Node;
+//! [0]
class GraphWidget : public QGraphicsView
{
Q_OBJECT
public:
- GraphWidget();
+ GraphWidget(QWidget *parent = 0);
void itemMoved();
@@ -67,5 +68,6 @@ private:
int timerId;
Node *centerNode;
};
+//! [0]
#endif