From 328550ff008da53d865f3a6f245aa4753d1b3527 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 30 Jul 2012 23:36:59 +0200 Subject: 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 --- examples/sql/drilldown/imageitem.cpp | 5 ++--- examples/sql/drilldown/imageitem.h | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'examples/sql/drilldown') diff --git a/examples/sql/drilldown/imageitem.cpp b/examples/sql/drilldown/imageitem.cpp index f712717f08..991ab98f28 100644 --- a/examples/sql/drilldown/imageitem.cpp +++ b/examples/sql/drilldown/imageitem.cpp @@ -41,9 +41,8 @@ #include "imageitem.h" //! [0] -ImageItem::ImageItem(int id, const QPixmap &pixmap, QGraphicsItem *parent, - QGraphicsScene *scene) - : QGraphicsPixmapItem(pixmap, parent, scene) +ImageItem::ImageItem(int id, const QPixmap &pixmap, QGraphicsItem *parent) + : QGraphicsPixmapItem(pixmap, parent) { recordId = id; setAcceptHoverEvents(true); diff --git a/examples/sql/drilldown/imageitem.h b/examples/sql/drilldown/imageitem.h index 74bac26676..be729c2272 100644 --- a/examples/sql/drilldown/imageitem.h +++ b/examples/sql/drilldown/imageitem.h @@ -50,8 +50,7 @@ class ImageItem : public QObject, public QGraphicsPixmapItem Q_OBJECT public: - ImageItem(int id, const QPixmap &pixmap, QGraphicsItem *parent = 0, - QGraphicsScene *scene = 0); + ImageItem(int id, const QPixmap &pixmap, QGraphicsItem *parent = 0); void adjust(); int id(); -- cgit v1.2.3