aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/notifier
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-04-15 08:15:30 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-04-15 08:15:30 +0000
commitfb04803cc2865030f8913f2e85221ff25b93ecf8 (patch)
tree591b3ef84b89eafd22b854f9b2b64788e77766a6 /src/plugins/General/notifier
parent9cde07e978a6945c31ec577aaec780e83a3384df (diff)
downloadqmmp-fb04803cc2865030f8913f2e85221ff25b93ecf8.tar.gz
qmmp-fb04803cc2865030f8913f2e85221ff25b93ecf8.tar.bz2
qmmp-fb04803cc2865030f8913f2e85221ff25b93ecf8.zip
some api changes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7905 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.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/General/notifier/notifier.cpp b/src/plugins/General/notifier/notifier.cpp
index c55008406..c7d25db94 100644
--- a/src/plugins/General/notifier/notifier.cpp
+++ b/src/plugins/General/notifier/notifier.cpp
@@ -136,7 +136,7 @@ void Notifier::showMetaData()
data.append(m_core->metaData(Qmmp::ARTIST).toUtf8()+"\n");
data.append(m_core->metaData(Qmmp::ALBUM).toUtf8()+"\n");
data.append(m_core->metaData(Qmmp::TRACK).toUtf8()+"\n");
- data.append(QString("%1").arg(m_core->totalTime()/1000).toUtf8()+"\n");
+ data.append(QString("%1").arg(m_core->duration()/1000).toUtf8()+"\n");
foreach(QString path, m_psiTuneFiles)
{
diff --git a/src/plugins/General/notifier/popupwidget.cpp b/src/plugins/General/notifier/popupwidget.cpp
index b3a4c136a..d5b72e04b 100644
--- a/src/plugins/General/notifier/popupwidget.cpp
+++ b/src/plugins/General/notifier/popupwidget.cpp
@@ -84,7 +84,7 @@ void PopupWidget::showMetaData()
m_timer->stop();
SoundCore *core = SoundCore::instance();
- QString title = m_formatter.format(core->metaData(), core->totalTime() / 1000);
+ QString title = m_formatter.format(core->metaData(), core->duration() / 1000);
m_label1->setText(title);