summaryrefslogtreecommitdiff
path: root/examples/tools
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2012-07-30 23:36:59 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-03 00:37:59 +0200
commit328550ff008da53d865f3a6f245aa4753d1b3527 (patch)
tree7cbb9295955145311ab6f8c1cd9038c076f7ea5c /examples/tools
parent8632b262855585c750d43090dc4e1672370cc596 (diff)
downloadqtbase-328550ff008da53d865f3a6f245aa4753d1b3527.tar.gz
Remove the obsolete scene argument for constructors of graphics items
The argument has been obsoleted and not documented since 2007. Get rid of it now before Qt 5.0 Task-number: QTBUG-25089 Change-Id: I91a5508a5e1606f5b5c289501295c67be4abe6a0 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'examples/tools')
-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;