From 0d428f0895f134af20e4d55a05357f899b18daa6 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 1 Jan 2010 22:34:14 +0000 Subject: fixed cover window title git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1468 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/covermanager/covermanager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 #include #include +#include #include #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(); } } -- cgit v1.2.3-13-gbd6f