summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--muse/awl/drawbar.cpp3
-rw-r--r--muse/awl/slider.cpp4
2 files changed, 4 insertions, 3 deletions
diff --git a/muse/awl/drawbar.cpp b/muse/awl/drawbar.cpp
index c24efc4e..5db3ea60 100644
--- a/muse/awl/drawbar.cpp
+++ b/muse/awl/drawbar.cpp
@@ -68,7 +68,8 @@ void Drawbar::paintEvent(QPaintEvent*)
int kh = w * 2;
int kw = w;
int pixel = h - kh;
- int ppos = pixel - int(pixel * _value / 8.0);
+// int ppos = pixel - int(pixel * _value / 8.0);
+ int ppos = int(pixel * _value / 8.0);
QPainter p(this);
diff --git a/muse/awl/slider.cpp b/muse/awl/slider.cpp
index 48328a7b..7686e850 100644
--- a/muse/awl/slider.cpp
+++ b/muse/awl/slider.cpp
@@ -173,8 +173,8 @@ void Slider::mouseMoveEvent(QMouseEvent* ev)
return;
int delta = startDrag.y() - ev->y();
- if (_invert)
- delta = -delta;
+// if (_invert)
+// delta = -delta;
if (orient == Qt::Horizontal)
delta = -delta;
int ppos = dragppos + delta;