diff options
author | Werner Schweer <ws.seh.de> | 2007-06-09 15:32:15 +0000 |
---|---|---|
committer | Werner Schweer <ws.seh.de> | 2007-06-09 15:32:15 +0000 |
commit | e06d480543d0fc041e15b77ec5f60dcf67ea8066 (patch) | |
tree | 5b2d440ac88b33ab17fbf8cd77f94a42b0a3bf56 | |
parent | 96aa80d5cdf53b50c4a32133a3f2ca47c78f0329 (diff) |
updates
-rw-r--r-- | muse/awl/drawbar.cpp | 3 | ||||
-rw-r--r-- | muse/awl/slider.cpp | 4 |
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; |