aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/covermanager
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-01-01 22:34:14 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-01-01 22:34:14 +0000
commit0d428f0895f134af20e4d55a05357f899b18daa6 (patch)
treee3668ea282a8d3a8a0eaf1f9cba13994ca49c48d /src/plugins/General/covermanager
parent6604d8ab2c18996f1d9ec177aa1cd11e70ff5173 (diff)
downloadqmmp-0d428f0895f134af20e4d55a05357f899b18daa6.tar.gz
qmmp-0d428f0895f134af20e4d55a05357f899b18daa6.tar.bz2
qmmp-0d428f0895f134af20e4d55a05357f899b18daa6.zip
fixed cover window title
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1468 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/covermanager')
-rw-r--r--src/plugins/General/covermanager/covermanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/General/covermanager/covermanager.cpp b/src/plugins/General/covermanager/covermanager.cpp
index b5d149cbf..be79ef386 100644
--- a/src/plugins/General/covermanager/covermanager.cpp
+++ b/src/plugins/General/covermanager/covermanager.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2009 by Ilya Kotov *
+ * Copyright (C) 2009-2010 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -25,6 +25,7 @@
#include <qmmpui/playlistitem.h>
#include <qmmpui/mediaplayer.h>
#include <qmmpui/generalhandler.h>
+#include <qmmpui/metadataformatter.h>
#include <qmmp/metadatamanager.h>
#include "coverwidget.h"
#include "covermanager.h"
@@ -46,7 +47,8 @@ void CoverManager::showWindow()
w->setFixedSize(400,400);
QPixmap pix = MetaDataManager::instance()->getCover(items.at(0)->url());
w->setPixmap(pix);
- w->setWindowTitle(items.at(0)->artist() + " - " + items.at(0)->album());
+ MetaDataFormatter formatter("%p%if(%p&%t, - ,)%if(%t,%t,%f)");
+ w->setWindowTitle(formatter.parse(items.at(0)->metaData()));
w->show();
}
}