summaryrefslogtreecommitdiff
path: root/muse2/awl/tcanvas.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-09-27 16:08:57 +0000
committerFlorian Jung <flo@windfisch.org>2011-09-27 16:08:57 +0000
commite9e38901f1b0c8b0d4c11f6de37abf7ff6c7234f (patch)
tree6db56ee33fda6adce28afc456c4fd84b56180453 /muse2/awl/tcanvas.cpp
parent5c2eaaf143f517e1a4d52e243a761e479aeb3e5b (diff)
parentd52fac00567bb85944188f3c946b86b2a420819c (diff)
merged with trunk
Diffstat (limited to 'muse2/awl/tcanvas.cpp')
-rw-r--r--muse2/awl/tcanvas.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/muse2/awl/tcanvas.cpp b/muse2/awl/tcanvas.cpp
index 55d06b1f..d39080e2 100644
--- a/muse2/awl/tcanvas.cpp
+++ b/muse2/awl/tcanvas.cpp
@@ -297,8 +297,14 @@ bool TimeCanvas::eventFilter(QObject* obj, QEvent* event)
int i = 0;
if (b & Qt::MidButton)
i = 1;
- else if (b & Qt::RightButton)
- i = 2;
+ //else if (b & Qt::RightButton)
+ // i = 2;
+ else if (b & Qt::RightButton) {
+ if ((MusEConfig::config.rangeMarkerWithoutMMB) && (event->modifiers() & Qt::ControlModifier))
+ i = 1;
+ else
+ i = 2;
+ }
if (keyState & Qt::ShiftModifier)
emit addMarker(i);
emit posChanged(i, pos);