[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 102978] New: [PATCH] fix slider reverse behavior in reversed
From: Assaf Gillat <gillata () gmail ! com>
Date: 2005-04-01 1:11:18
Message-ID: 20050401031116.102978.gillata () gmail ! com
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=102978
Summary: [PATCH] fix slider reverse behavior in reversed Layout
locales (Hebrew,Arabic)
Product: amarok
Version: unspecified
Platform: Debian testing
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: amarok-bugs-dist lists sourceforge net
ReportedBy: gillata gmail com
Version: (using KDE KDE 3.3.2)
Installed from: Debian testing/unstable Packages
If you use a reversed layout locale like Hebrew or Arabic, the slider is somehow \
reversed.
a patch to fix it:
--- amarok-1.2.3/amarok/src/sliderwidget.cpp 2005-03-28 21:15:55.000000000 +0200
+++ amarok-1.2.3-fix/amarok/src/sliderwidget.cpp 2005-04-01 00:01:03.289125352 \
+0300 @ -68,7 +68,9 @
amaroK::Slider::slideEvent( QMouseEvent *e )
{
QSlider::setValue( orientation() == Horizontal
- ? QRangeControl::valueFromPosition( e->pos().x() - sliderRect().width()/2, \
width() - sliderRect().width() ) + ? ((QApplication::reverseLayout())
+ ? QRangeControl::valueFromPosition( width() - (e->pos().x() - \
sliderRect().width()/2), width() + sliderRect().width() ) + : \
QRangeControl::valueFromPosition( e->pos().x() - sliderRect().width()/2, width() - \
sliderRect().width() ) )
: QRangeControl::valueFromPosition( e->pos().y() - sliderRect().height()/2, \
height() - sliderRect().height() ) ); }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic