[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/multimedia/amarok/src/widgets
From:       Mark Kretschmann <kretschmann () kde ! org>
Date:       2009-06-03 7:26:06
Message-ID: 1244013966.419089.14180.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 976975 by markey:

Fix inconsistency in the slider widget: When the mouse cursor was
released outside of the slider, the slider jumped back to the old
position, but the actual position was not reset.

Thanks to Senol Korkmaz <senol.korkmaz@gmail.com> for the patch :)

BUG: 195065

 M  +4 -0      SliderWidget.cpp  


--- trunk/extragear/multimedia/amarok/src/widgets/SliderWidget.cpp #976974:976975
@@ -91,7 +91,11 @@
         if ( orientation() == Qt::Horizontal && !rect.contains( e->pos() ) )
         {
             if ( !m_outside )
+            {
                 QSlider::setValue( m_prevValue );
+                //if mouse released outside of slider, emit sliderMoved to previous value
+                emit sliderMoved( m_prevValue );
+            }
             m_outside = true;
         }
         else
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic