aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/notifier
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-03-07 22:43:26 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-03-07 22:43:26 +0000
commit0b46e2db06ec1bbfc3aee819787386ace9dad66c (patch)
tree109f4bbf3a7227262a280f00731f0767d331a811 /src/plugins/General/notifier
parent5896c5ae40726637cbfc5605f5f659791ff569c7 (diff)
downloadqmmp-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/plugins/General/notifier')
-rw-r--r--src/plugins/General/notifier/notifier.cpp2
-rw-r--r--src/plugins/General/notifier/popupwidget.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/General/notifier/notifier.cpp b/src/plugins/General/notifier/notifier.cpp
index d1254a78b..42b07eb2d 100644
--- a/src/plugins/General/notifier/notifier.cpp
+++ b/src/plugins/General/notifier/notifier.cpp
@@ -85,7 +85,7 @@ void Notifier::showMetaData()
file.write(m_core->metaData(Qmmp::ARTIST).toUtf8()+"\n");
file.write(m_core->metaData(Qmmp::ALBUM).toUtf8()+"\n");
file.write(m_core->metaData(Qmmp::TRACK).toUtf8()+"\n");
- file.write(QString("%1").arg(m_core->length()).toUtf8()+"\n");
+ file.write(QString("%1").arg(m_core->totalTime()/1000).toUtf8()+"\n");
file.close();
}
diff --git a/src/plugins/General/notifier/popupwidget.cpp b/src/plugins/General/notifier/popupwidget.cpp
index 9e7c3cc53..f6a7c7e73 100644
--- a/src/plugins/General/notifier/popupwidget.cpp
+++ b/src/plugins/General/notifier/popupwidget.cpp
@@ -83,10 +83,10 @@ void PopupWidget::showMetaData()
QString title = core->metaData(Qmmp::TITLE);
if (title.isEmpty())
title = core->metaData(Qmmp::URL).section('/',-1);
- if (core->length() > 0)
+ if (core->totalTime() > 0)
{
title.append(" ");
- title.append(QString("(%1:%2)").arg(core->length()/60).arg(core->length()%60, 2, 10, QChar('0')));
+ title.append(QString("(%1:%2)").arg(core->totalTime()/60000).arg(core->totalTime()%60000, 2, 10, QChar('0')));
}
m_label1->setText("<b>" + title + "</b>");