From a2902a527aaf41cdb9151d0726281f6d914cba9b Mon Sep 17 00:00:00 2001 From: don bright Date: Sat, 2 Jun 2012 18:29:50 +0200 Subject: fix glview to work with QT versions less than 4.7 diff --git a/src/glview.cc b/src/glview.cc index 82ca084..bea5856 100644 --- a/src/glview.cc +++ b/src/glview.cc @@ -600,7 +600,11 @@ void GLView::mouseMoveEvent(QMouseEvent *event) double mz = -(dy) * viewer_distance/1000; double my = 0; +#if (QT_VERSION < QT_VERSION_CHECK(4, 7, 0)) if (event->buttons() & Qt::MidButton) { +#else + if (event->buttons() & Qt::MiddleButton) { +#endif my = mz; mz = 0; // actually lock the x-position -- cgit v0.10.1