diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-05-09 19:10:34 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-05-09 19:10:34 +0000 |
| commit | 029b517f5bcb7e97e28032cd67d645f765ae5fe4 (patch) | |
| tree | d73f0d995bd194273fc849fc748f4717b3e63d6e /src/ui/timeindicator.cpp | |
| parent | edfa16a7b17a622120dcb018245bda9d2eadd44c (diff) | |
| download | qmmp-029b517f5bcb7e97e28032cd67d645f765ae5fe4.tar.gz qmmp-029b517f5bcb7e97e28032cd67d645f765ae5fe4.tar.bz2 qmmp-029b517f5bcb7e97e28032cd67d645f765ae5fe4.zip | |
fixed time format
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1726 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/timeindicator.cpp')
| -rw-r--r-- | src/ui/timeindicator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/timeindicator.cpp b/src/ui/timeindicator.cpp index 200168c3d..02c185b36 100644 --- a/src/ui/timeindicator.cpp +++ b/src/ui/timeindicator.cpp @@ -44,7 +44,7 @@ TimeIndicator::TimeIndicator (QWidget *parent) connect(m_timer, SIGNAL(timeout()),SLOT(reset())); } -void TimeIndicator::setTime ( int t ) +void TimeIndicator::setTime (int t) { m_time = t; m_pixmap.fill (Qt::transparent); @@ -59,6 +59,9 @@ void TimeIndicator::setTime ( int t ) if (t < 0) t = 0; + if(t > 3600) + t /= 60; + paint.drawPixmap(r*13,0,m_skin->getNumber(t/600%10)); paint.drawPixmap(r*26,0,m_skin->getNumber(t/60%10)); paint.drawPixmap(r*43,0,m_skin->getNumber(t%60/10)); |
