summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Schweer <ws.seh.de>2007-06-09 15:32:15 +0000
committerWerner Schweer <ws.seh.de>2007-06-09 15:32:15 +0000
commite06d480543d0fc041e15b77ec5f60dcf67ea8066 (patch)
tree5b2d440ac88b33ab17fbf8cd77f94a42b0a3bf56
parent96aa80d5cdf53b50c4a32133a3f2ca47c78f0329 (diff)
updates
-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;