From 10cf99e346ecb30ce7a701ca062856cd18d05dea Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 3 Jul 2013 16:06:05 +0000 Subject: added function mid() to the playlist model git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3534 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistmodel.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/qmmpui/playlistmodel.h') diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h index 783a44dfb..6ea3efa33 100644 --- a/src/qmmpui/playlistmodel.h +++ b/src/qmmpui/playlistmodel.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2012 by Ilya Kotov * + * Copyright (C) 2006-2013 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -185,6 +185,12 @@ public: * @param last Last item. */ QStringList getTimes(int first,int last); + /*! + * Returns a list of the items, starting at position \b pos + * \param pos First item position. + * \param count A number of items. If \b count is -1 (the default), all items from pos are returned. + */ + QList mid(int pos, int count = -1); /*! * Moves the item at index position \b from to index position \b to. */ -- cgit v1.2.3-13-gbd6f