aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/statusicon
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/statusicon')
-rw-r--r--src/plugins/General/statusicon/statusicon.cpp4
-rw-r--r--src/plugins/General/statusicon/statusiconpopupwidget.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/General/statusicon/statusicon.cpp b/src/plugins/General/statusicon/statusicon.cpp
index 077babe5c..9fcbce60d 100644
--- a/src/plugins/General/statusicon/statusicon.cpp
+++ b/src/plugins/General/statusicon/statusicon.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2013 by Ilya Kotov *
+ * Copyright (C) 2008-2015 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -122,7 +122,7 @@ void StatusIcon::setState(Qmmp::State state)
void StatusIcon::showMetaData()
{
MetaDataFormatter f("%p%if(%p&%t, - ,)%t");
- QString message = f.parse(m_core->metaData());
+ QString message = f.format(m_core->metaData());
if (message.isEmpty())
message = m_core->metaData(Qmmp::URL).section('/',-1);
diff --git a/src/plugins/General/statusicon/statusiconpopupwidget.cpp b/src/plugins/General/statusicon/statusiconpopupwidget.cpp
index 694c19a5b..1b057c817 100644
--- a/src/plugins/General/statusicon/statusiconpopupwidget.cpp
+++ b/src/plugins/General/statusicon/statusiconpopupwidget.cpp
@@ -2,7 +2,7 @@
* Copyright (C) 2009 by Artur Guzik *
* a.guzik88@gmail.com *
* *
- * Copyright (C) 2009-2012 by Ilya Kotov *
+ * Copyright (C) 2009-2015 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -116,7 +116,7 @@ void StatusIconPopupWidget::updateMetaData()
}
MetaDataFormatter f(title);
- title = f.parse(core->metaData(), core->totalTime()/1000);
+ title = f.format(core->metaData(), core->totalTime()/1000);
m_textLabel->setText(title);
QPixmap cover = MetaDataManager::instance()->getCover(core->metaData(Qmmp::URL));
m_cover->show();