From e14146d9ab7368dbb428b7ea02f4a8ff48a128bf Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 3 Jul 2013 16:04:52 +0000 Subject: added length format function git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3533 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/metadataformatter.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/qmmpui/metadataformatter.h') diff --git a/src/qmmpui/metadataformatter.h b/src/qmmpui/metadataformatter.h index a838736bb..9669e117c 100644 --- a/src/qmmpui/metadataformatter.h +++ b/src/qmmpui/metadataformatter.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009-2012 by Ilya Kotov * + * Copyright (C) 2009-2013 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -62,6 +62,11 @@ public: * @param length Length in seconds. */ QString parse(const QMap metaData, qint64 length = 0); + /*! + * Returns formatted length (example: 05:02:03). + * \param length Length in seconds. + */ + QString formatLength(qint64 length) const; private: QString m_format; -- cgit v1.2.3-13-gbd6f