summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-06-02 16:29:50 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-06-02 16:29:50 (GMT)
commita2902a527aaf41cdb9151d0726281f6d914cba9b (patch)
tree467af56393157cc3f446b217e80f9ae5a300b823 /src
parent5b454adeef057f3c0bffdd7582cc46ce67344458 (diff)
fix glview to work with QT versions less than 4.7
Diffstat (limited to 'src')
-rw-r--r--src/glview.cc4
1 files changed, 4 insertions, 0 deletions
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
contact: Jan Huwald // Impressum