From ab9b0aebfe2e164dfff06d4401d9512bffac332e Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 18 Sep 2011 16:27:58 +0000 Subject: removed the last obstacle for non-middle-button-users: added config option "set left range marker with ctrl+rightclick" --- muse2/awl/tcanvas.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'muse2/awl') 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); -- cgit v1.2.3