aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/notifier
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-05-09 08:32:35 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-05-09 08:32:35 +0000
commit4edc7417385dca72a37efbdfb257ec50c5fe628b (patch)
tree1b3c2ee7481ddf0f2d0681cc3cd115bb8b9e88de /src/plugins/General/notifier
parent05c99c2e3fdf670827bb3a15c750bc9ea0b02e04 (diff)
downloadqmmp-4edc7417385dca72a37efbdfb257ec50c5fe628b.tar.gz
qmmp-4edc7417385dca72a37efbdfb257ec50c5fe628b.tar.bz2
qmmp-4edc7417385dca72a37efbdfb257ec50c5fe628b.zip
enabled notifier plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7950 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/notifier')
-rw-r--r--src/plugins/General/notifier/notifier.cpp4
-rw-r--r--src/plugins/General/notifier/popupwidget.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/General/notifier/notifier.cpp b/src/plugins/General/notifier/notifier.cpp
index c7d25db94..20b5b6195 100644
--- a/src/plugins/General/notifier/notifier.cpp
+++ b/src/plugins/General/notifier/notifier.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2017 by Ilya Kotov *
+ * Copyright (C) 2008-2018 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -54,7 +54,7 @@ Notifier::Notifier(QObject *parent) : QObject(parent)
m_disableForFullScreen = settings.value("disable_fullscreen", false).toBool();
settings.endGroup();
m_core = SoundCore::instance();
- connect (m_core, SIGNAL(metaDataChanged ()), SLOT(showMetaData()));
+ connect (m_core, SIGNAL(trackInfoChanged()), SLOT(showMetaData()));
connect (m_core, SIGNAL(stateChanged (Qmmp::State)), SLOT(setState(Qmmp::State)));
connect (m_core, SIGNAL(volumeChanged(int, int)), SLOT(showVolume(int, int)));
diff --git a/src/plugins/General/notifier/popupwidget.cpp b/src/plugins/General/notifier/popupwidget.cpp
index d5b72e04b..7837aff65 100644
--- a/src/plugins/General/notifier/popupwidget.cpp
+++ b/src/plugins/General/notifier/popupwidget.cpp
@@ -84,11 +84,11 @@ void PopupWidget::showMetaData()
m_timer->stop();
SoundCore *core = SoundCore::instance();
- QString title = m_formatter.format(core->metaData(), core->duration() / 1000);
+ QString title = m_formatter.format(core->trackInfo());
m_label1->setText(title);
- QPixmap pix = MetaDataManager::instance()->getCover(core->metaData(Qmmp::URL));
+ QPixmap pix = MetaDataManager::instance()->getCover(core->path());
if(!pix.isNull())
{
m_pixlabel->setFixedSize(m_coverSize,m_coverSize);