From 029b517f5bcb7e97e28032cd67d645f765ae5fe4 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 9 May 2010 19:10:34 +0000 Subject: fixed time format git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1726 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/timeindicator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ui/timeindicator.cpp') 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)); -- cgit v1.2.3-13-gbd6f