diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-03-07 22:43:26 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-03-07 22:43:26 +0000 |
| commit | 0b46e2db06ec1bbfc3aee819787386ace9dad66c (patch) | |
| tree | 109f4bbf3a7227262a280f00731f0767d331a811 /src/ui/display.cpp | |
| parent | 5896c5ae40726637cbfc5605f5f659791ff569c7 (diff) | |
| download | qmmp-0b46e2db06ec1bbfc3aee819787386ace9dad66c.tar.gz qmmp-0b46e2db06ec1bbfc3aee819787386ace9dad66c.tar.bz2 qmmp-0b46e2db06ec1bbfc3aee819787386ace9dad66c.zip | |
improved seeking accuracy
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@827 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/display.cpp')
| -rw-r--r-- | src/ui/display.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/display.cpp b/src/ui/display.cpp index d9967b74b..3280a5104 100644 --- a/src/ui/display.cpp +++ b/src/ui/display.cpp @@ -162,13 +162,13 @@ MainDisplay::~MainDisplay() void MainDisplay::setTime (qint64 t) { - posbar->setValue (t); //TODO use qint64 - m_timeIndicator->setTime(t); + posbar->setValue (t); + m_timeIndicator->setTime(t/1000); } void MainDisplay::setDuration(qint64 t) { posbar->setMax (t); - m_timeIndicator->setSongDuration(t); + m_timeIndicator->setSongDuration(t/1000); } void MainDisplay::setState(Qmmp::State state) @@ -179,7 +179,7 @@ void MainDisplay::setState(Qmmp::State state) { m_playstatus->setStatus(PlayStatus::PLAY); m_timeIndicator->setNeedToShowTime(TRUE); - setDuration(m_core->length()); + setDuration(m_core->totalTime()); break; } case Qmmp::Paused: |
