From fb04803cc2865030f8913f2e85221ff25b93ecf8 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 15 Apr 2018 08:15:30 +0000 Subject: some api changes git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7905 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/notifier/notifier.cpp | 2 +- src/plugins/General/notifier/popupwidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/General/notifier') 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); -- cgit v1.2.3-13-gbd6f