From e06d480543d0fc041e15b77ec5f60dcf67ea8066 Mon Sep 17 00:00:00 2001 From: Werner Schweer Date: Sat, 9 Jun 2007 15:32:15 +0000 Subject: updates --- muse/awl/drawbar.cpp | 3 ++- muse/awl/slider.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'muse') 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; -- cgit v1.2.3