summaryrefslogtreecommitdiff
path: root/src/glview.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-06-04 09:34:27 (GMT)
committerMarius Kintel <marius@kintel.net>2012-06-04 09:34:27 (GMT)
commit197a4e4d364fbdd0aca8fb9027476ee1c48652e3 (patch)
tree6ca650907710971d6835732caadd4053cdc6f32a /src/glview.cc
parent6735a8841b4ca93db2c101ab89d0875b5eee51a8 (diff)
parent9698d1d2fbe6b19573a0e483a6411a8ebd0f6947 (diff)
Merge branch 'master' into value
Diffstat (limited to 'src/glview.cc')
-rw-r--r--src/glview.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glview.cc b/src/glview.cc
index aa2e746..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