diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-08 17:53:28 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-08 17:54:51 -0700 |
commit | a70a0662f5a1278260ba03180ea947032d8f6885 (patch) | |
tree | 77baace802244eeedc1cff323da65eeb84ce3670 /qt-ui/profile | |
parent | 98e1b36a9887d252f6c331b76c4a807e66b4bb99 (diff) | |
download | subsurface-a70a0662f5a1278260ba03180ea947032d8f6885.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/divepixmapitem.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |