Summary: | JuK should give a hint how far one is scrolling into the file | ||
---|---|---|---|
Product: | [Applications] juk | Reporter: | Frerich Raabe <raabe> |
Component: | general | Assignee: | Scott Wheeler <wheeler> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | All | ||
Latest Commit: | Version Fixed In: |
Description
Frerich Raabe
2003-03-14 14:49:00 UTC
Subject: kdemultimedia/juk CVS commit by wheeler: Patch from Stephan Douglas for #55956. This updates the status bar while using the slider to seek to a point in the file. CCMAIL:55956-done@bugs.kde.org, stephen_douglas@yahoo.com M +10 -0 juk.cpp 1.93 --- kdemultimedia/juk/juk.cpp #1.92:1.93 @@ -657,4 +657,14 @@ void JuK::slotTrackPositionSliderUpdate( if(m_player->playing() && !m_trackPositionDragging && !m_noSeek) m_player->seekPosition(position); + + // The dragging flag is set, so just update the status label, rather than seeking + if(m_player->playing() && m_trackPositionDragging && !m_noSeek) { + // position from 0 to 1 + float positionFraction = float(position) / m_sliderAction->getTrackPositionSlider()->maxValue(); + float totalTime = float(m_player->totalTime()); + long seekTime = long(positionFraction * totalTime + 0.5); // "+0.5" for rounding + + m_statusLabel->setItemCurrentTime(seekTime); + } } |