From a70a0662f5a1278260ba03180ea947032d8f6885 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 8 Jun 2014 17:53:28 -0700 Subject: [PATCH] Pick the correct API function name for Qt5 Subtle change in function name from Qt4 to Qt5 setAcceptsHoverEvents -> setAcceptHoverEvents Now Subsurface builds with Qt5 again. Signed-off-by: Dirk Hohndel --- qt-ui/profile/divepixmapitem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt-ui/profile/divepixmapitem.cpp b/qt-ui/profile/divepixmapitem.cpp index c0eeb8454..c75456262 100644 --- a/qt-ui/profile/divepixmapitem.cpp +++ b/qt-ui/profile/divepixmapitem.cpp @@ -11,7 +11,11 @@ DivePixmapItem::DivePixmapItem(QObject *parent) : QObject(parent), QGraphicsPixm DivePictureItem::DivePictureItem(QObject *parent): DivePixmapItem(parent) { +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) setAcceptsHoverEvents(true); +#else + setAcceptHoverEvents(true); +#endif setScale(0.2); }