summaryrefslogtreecommitdiff
path: root/muse2/awl/floatentry.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-09-18 15:19:53 +0000
committerFlorian Jung <flo@windfisch.org>2011-09-18 15:19:53 +0000
commit6b004a6b4eb4e90fac188907623085da49c065e7 (patch)
treeabe06c09acc5f37b3b3d1c0f02339b35182bf975 /muse2/awl/floatentry.cpp
parent8d959d62b8013b0415afe783786f16a465b949a4 (diff)
made muse more usable without middle mouse button
Diffstat (limited to 'muse2/awl/floatentry.cpp')
-rw-r--r--muse2/awl/floatentry.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/muse2/awl/floatentry.cpp b/muse2/awl/floatentry.cpp
index 44739944..573420df 100644
--- a/muse2/awl/floatentry.cpp
+++ b/muse2/awl/floatentry.cpp
@@ -22,6 +22,7 @@
#include "floatentry.h"
#include "fastlog.h"
+#include "gconfig.h"
#include <QLineEdit>
#include <QMouseEvent>
@@ -219,7 +220,9 @@ void FloatEntry::repeat()
switch (button) {
case Qt::LeftButton:
- return;
+ if (!MusEConfig::config.leftMouseButtonCanDecrease)
+ return;
+ // else fall through
case Qt::MidButton:
decValue(evx);
break;