QGraphicsItem::setAcceptsHoverEvents is deprecated, replace it

It is replaced by setAcceptHoverEvents (note the lack of s), even
though the original name made more sense -- "set (if this item)
accepts hover events".

Change-Id: Ia6137c0e37b0a5932836f1d08fb8fa436f736eed
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
Thiago Macieira 2012-06-25 20:05:58 +02:00 committed by Qt by Nokia
parent 62d4840011
commit ce17ca7791
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);