summaryrefslogtreecommitdiffstats
path: root/examples/sql
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sql')
-rw-r--r--examples/sql/drilldown/imageitem.cpp5
-rw-r--r--examples/sql/drilldown/imageitem.h3
2 files changed, 3 insertions, 5 deletions
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();