summaryrefslogtreecommitdiffstats
path: root/examples/tools/undoframework
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tools/undoframework')
-rw-r--r--examples/tools/undoframework/diagramitem.cpp5
-rw-r--r--examples/tools/undoframework/diagramitem.h3
2 files changed, 3 insertions, 5 deletions
diff --git a/examples/tools/undoframework/diagramitem.cpp b/examples/tools/undoframework/diagramitem.cpp
index 10ade13628..4070dd158d 100644
--- a/examples/tools/undoframework/diagramitem.cpp
+++ b/examples/tools/undoframework/diagramitem.cpp
@@ -42,9 +42,8 @@
#include "diagramitem.h"
-DiagramItem::DiagramItem(DiagramType diagramType, QGraphicsItem *item,
- QGraphicsScene *scene)
- : QGraphicsPolygonItem(item, scene)
+DiagramItem::DiagramItem(DiagramType diagramType, QGraphicsItem *item)
+ : QGraphicsPolygonItem(item)
{
if (diagramType == Box) {
boxPolygon << QPointF(0, 0) << QPointF(0, 30) << QPointF(30, 30)
diff --git a/examples/tools/undoframework/diagramitem.h b/examples/tools/undoframework/diagramitem.h
index f5a7eb4b62..849ef2132b 100644
--- a/examples/tools/undoframework/diagramitem.h
+++ b/examples/tools/undoframework/diagramitem.h
@@ -56,8 +56,7 @@ public:
enum { Type = UserType + 1 };
enum DiagramType { Box, Triangle };
- DiagramItem(DiagramType diagramType, QGraphicsItem *item = 0,
- QGraphicsScene *scene = 0);
+ DiagramItem(DiagramType diagramType, QGraphicsItem *item = 0);
DiagramType diagramType() const {
return polygon() == boxPolygon ? Box : Triangle;