diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-02-02 10:10:49 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-02-02 10:10:49 +0000 |
| commit | 264f3ddbe777c212620a2e5c66c1b9f358f833e7 (patch) | |
| tree | 6db54ed8111453e687c6ce8569cadf37df2f8c27 /src/plugins/General/statusicon | |
| parent | 8eccc97170a4ea592aa3fe38fed1294e86df0b1c (diff) | |
| download | qmmp-264f3ddbe777c212620a2e5c66c1b9f358f833e7.tar.gz qmmp-264f3ddbe777c212620a2e5c66c1b9f358f833e7.tar.bz2 qmmp-264f3ddbe777c212620a2e5c66c1b9f358f833e7.zip | |
enabled new metadata formatter
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4710 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/statusicon')
| -rw-r--r-- | src/plugins/General/statusicon/statusicon.cpp | 4 | ||||
| -rw-r--r-- | src/plugins/General/statusicon/statusiconpopupwidget.cpp | 4 |
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(); |
