1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

* Properly fix time display in stable.

This commit is contained in:
Christian Muehlhaeuser
2012-04-05 06:17:40 +02:00
parent aec7a0b140
commit 9a9a7148af
2 changed files with 2 additions and 0 deletions

View File

@@ -237,6 +237,7 @@ AudioControls::onPlaybackLoading( const Tomahawk::result_ptr& result )
ui->timeLabel->setText( TomahawkUtils::timeToString( 0 ) ); ui->timeLabel->setText( TomahawkUtils::timeToString( 0 ) );
ui->timeLeftLabel->setFixedWidth( ui->timeLeftLabel->fontMetrics().width( QString( duration.length() + 1, QChar( '0' ) ) ) ); ui->timeLeftLabel->setFixedWidth( ui->timeLeftLabel->fontMetrics().width( QString( duration.length() + 1, QChar( '0' ) ) ) );
ui->timeLeftLabel->setText( "-" + duration ); ui->timeLeftLabel->setText( "-" + duration );
m_lastTextSecondShown = 0;
ui->stackedLayout->setCurrentWidget( ui->pauseButton ); ui->stackedLayout->setCurrentWidget( ui->pauseButton );

View File

@@ -100,6 +100,7 @@ private:
qint64 m_seekMsecs; qint64 m_seekMsecs;
qint64 m_lastSliderCheck; qint64 m_lastSliderCheck;
bool m_noTimeChange; bool m_noTimeChange;
qint64 m_lastTextSecondShown;
}; };
#endif // AUDIOCONTROLS_H #endif // AUDIOCONTROLS_H