From aa06a62511cabebeaad1d3dda34b30640f967dea Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sat, 03 Aug 2002 14:19:05 +0000 Subject: audiowidget now shows time and slider moves. --- (limited to 'noncore/multimedia/opieplayer2/audiowidget.cpp') diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 303834a..23f4329 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp @@ -251,7 +251,7 @@ void AudioWidget::sliderReleased() { } void AudioWidget::setPosition( long i ) { - qDebug("<<<<<<<<<<<<<<<<<<<<<<<length() ); } @@ -290,7 +290,6 @@ void AudioWidget::setView( char view ) { static QString timeAsString( long length ) { - length /= 44100; int minutes = length / 60; int seconds = length % 60; return QString("%1:%2%3").arg( minutes ).arg( seconds / 10 ).arg( seconds % 10 ); @@ -299,7 +298,8 @@ static QString timeAsString( long length ) { void AudioWidget::updateSlider( long i, long max ) { time.setText( timeAsString( i ) + " / " + timeAsString( max ) ); - +// qDebug( timeAsString( i ) + " / " + timeAsString( max ) ) ; + if ( max == 0 ) { return; } -- cgit v0.9.0.2