diff --git a/examples/graphicsview/chip/chip.cpp b/examples/graphicsview/chip/chip.cpp index 912a7902c9..665daea1dc 100644 --- a/examples/graphicsview/chip/chip.cpp +++ b/examples/graphicsview/chip/chip.cpp @@ -51,7 +51,7 @@ Chip::Chip(const QColor &color, int x, int y) setZValue((x + y) % 2); setFlags(ItemIsSelectable | ItemIsMovable); - setAcceptsHoverEvents(true); + setAcceptHoverEvents(true); } QRectF Chip::boundingRect() const diff --git a/examples/sql/drilldown/imageitem.cpp b/examples/sql/drilldown/imageitem.cpp index 8173b2ae5f..f712717f08 100644 --- a/examples/sql/drilldown/imageitem.cpp +++ b/examples/sql/drilldown/imageitem.cpp @@ -46,7 +46,7 @@ ImageItem::ImageItem(int id, const QPixmap &pixmap, QGraphicsItem *parent, : QGraphicsPixmapItem(pixmap, parent, scene) { recordId = id; - setAcceptsHoverEvents(true); + setAcceptHoverEvents(true); timeLine.setDuration(150); timeLine.setFrameRange(0, 150);