mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Remove debugging
This commit is contained in:
@@ -184,7 +184,7 @@ AudioControls::onVolumeChanged( int volume )
|
|||||||
void
|
void
|
||||||
AudioControls::onPlaybackStarted( const Tomahawk::result_ptr& result )
|
AudioControls::onPlaybackStarted( const Tomahawk::result_ptr& result )
|
||||||
{
|
{
|
||||||
tDebug() << Q_FUNC_INFO;
|
tDebug( LOGEXTRA ) << Q_FUNC_INFO;
|
||||||
|
|
||||||
if ( result.isNull() )
|
if ( result.isNull() )
|
||||||
return;
|
return;
|
||||||
@@ -200,9 +200,6 @@ AudioControls::onPlaybackStarted( const Tomahawk::result_ptr& result )
|
|||||||
ui->seekSlider->setRange( 0, duration );
|
ui->seekSlider->setRange( 0, duration );
|
||||||
ui->seekSlider->setValue( 0 );
|
ui->seekSlider->setValue( 0 );
|
||||||
|
|
||||||
tLog() << Q_FUNC_INFO << " setting sliderTimeLine duration to " << (duration);
|
|
||||||
tLog() << Q_FUNC_INFO << " setting sliderTimeLine frames to " << (duration);
|
|
||||||
|
|
||||||
m_sliderTimeLine.stop();
|
m_sliderTimeLine.stop();
|
||||||
m_sliderTimeLine.setDuration( duration );
|
m_sliderTimeLine.setDuration( duration );
|
||||||
m_sliderTimeLine.setFrameRange( 0, duration );
|
m_sliderTimeLine.setFrameRange( 0, duration );
|
||||||
@@ -269,7 +266,7 @@ AudioControls::infoSystemFinished( QString target )
|
|||||||
void
|
void
|
||||||
AudioControls::onPlaybackLoading( const Tomahawk::result_ptr& result )
|
AudioControls::onPlaybackLoading( const Tomahawk::result_ptr& result )
|
||||||
{
|
{
|
||||||
tDebug() << Q_FUNC_INFO;
|
tDebug( LOGEXTRA ) << Q_FUNC_INFO;
|
||||||
|
|
||||||
m_currentTrack = result;
|
m_currentTrack = result;
|
||||||
|
|
||||||
@@ -316,7 +313,7 @@ AudioControls::socialActionsLoaded()
|
|||||||
void
|
void
|
||||||
AudioControls::onPlaybackPaused()
|
AudioControls::onPlaybackPaused()
|
||||||
{
|
{
|
||||||
tDebug() << Q_FUNC_INFO;
|
tDebug( LOGEXTRA ) << Q_FUNC_INFO;
|
||||||
ui->stackedLayout->setCurrentWidget( ui->playPauseButton );
|
ui->stackedLayout->setCurrentWidget( ui->playPauseButton );
|
||||||
m_sliderTimeLine.setPaused( true );
|
m_sliderTimeLine.setPaused( true );
|
||||||
}
|
}
|
||||||
@@ -324,7 +321,7 @@ AudioControls::onPlaybackPaused()
|
|||||||
void
|
void
|
||||||
AudioControls::onPlaybackResumed()
|
AudioControls::onPlaybackResumed()
|
||||||
{
|
{
|
||||||
tDebug() << Q_FUNC_INFO;
|
tDebug( LOGEXTRA ) << Q_FUNC_INFO;
|
||||||
ui->stackedLayout->setCurrentWidget( ui->pauseButton );
|
ui->stackedLayout->setCurrentWidget( ui->pauseButton );
|
||||||
ui->loveButton->setVisible( true );
|
ui->loveButton->setVisible( true );
|
||||||
m_sliderTimeLine.resume();
|
m_sliderTimeLine.resume();
|
||||||
@@ -334,7 +331,7 @@ AudioControls::onPlaybackResumed()
|
|||||||
void
|
void
|
||||||
AudioControls::onPlaybackStopped()
|
AudioControls::onPlaybackStopped()
|
||||||
{
|
{
|
||||||
tDebug() << Q_FUNC_INFO;
|
tDebug( LOGEXTRA ) << Q_FUNC_INFO;
|
||||||
m_currentTrack.clear();
|
m_currentTrack.clear();
|
||||||
|
|
||||||
ui->artistTrackLabel->setText( "" );
|
ui->artistTrackLabel->setText( "" );
|
||||||
@@ -356,7 +353,6 @@ AudioControls::onPlaybackStopped()
|
|||||||
void
|
void
|
||||||
AudioControls::onPlaybackTimer( qint64 msElapsed )
|
AudioControls::onPlaybackTimer( qint64 msElapsed )
|
||||||
{
|
{
|
||||||
tDebug() << Q_FUNC_INFO;
|
|
||||||
if ( m_currentTrack.isNull() )
|
if ( m_currentTrack.isNull() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -365,7 +361,6 @@ AudioControls::onPlaybackTimer( qint64 msElapsed )
|
|||||||
const int seconds = msElapsed / 1000;
|
const int seconds = msElapsed / 1000;
|
||||||
ui->timeLabel->setText( TomahawkUtils::timeToString( seconds ) );
|
ui->timeLabel->setText( TomahawkUtils::timeToString( seconds ) );
|
||||||
ui->timeLeftLabel->setText( "-" + TomahawkUtils::timeToString( m_currentTrack->duration() - seconds ) );
|
ui->timeLeftLabel->setText( "-" + TomahawkUtils::timeToString( m_currentTrack->duration() - seconds ) );
|
||||||
tLog() << Q_FUNC_INFO << " setting sliderTimeLine elapsed time to " << msElapsed;
|
|
||||||
|
|
||||||
if ( m_sliderTimeLine.currentTime() > msElapsed )
|
if ( m_sliderTimeLine.currentTime() > msElapsed )
|
||||||
m_sliderTimeLine.setCurrentTime( msElapsed );
|
m_sliderTimeLine.setCurrentTime( msElapsed );
|
||||||
|
Reference in New Issue
Block a user