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:
parent
62d4840011
commit
ce17ca7791
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user