diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-01-27 22:25:47 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-01-27 22:25:47 +0000 |
| commit | abaab158ba5c7e46ecfee3846ae9d596df871212 (patch) | |
| tree | 28a8a6eafecc4b6908fae4528ba45990d53460b9 /src/ui | |
| parent | 57da9f81de51faa5daba43346c35424d854f3ced (diff) | |
| download | qmmp-abaab158ba5c7e46ecfee3846ae9d596df871212.tar.gz qmmp-abaab158ba5c7e46ecfee3846ae9d596df871212.tar.bz2 qmmp-abaab158ba5c7e46ecfee3846ae9d596df871212.zip | |
added template editor, improved status icon plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1530 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/popupwidget.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/ui/popupwidget.cpp b/src/ui/popupwidget.cpp index 0494f6bb0..6d44e0b84 100644 --- a/src/ui/popupwidget.cpp +++ b/src/ui/popupwidget.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -84,16 +84,8 @@ void PopupWidget::popup(PlayListItem *item, QPoint pos) m_lastItem = item; move(pos); QString title = m_template; - - if (item->length() > 0) - { - int l = item->length(); - title.replace("%l",QString("%1:%2").arg(l/60).arg(l%60, 2, 10, QChar('0'))); - } - else - title.replace("%l",""); MetaDataFormatter f(title); - title = f.parse(item->metaData()); + title = f.parse(item); m_label1->setText(title); |
