From a0c457d7dd9d609bdf8de45d9b5ac6e578ae38b2 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 29 Aug 2010 19:29:03 +0000 Subject: added 'auto stop' option (patch by Avihay Baratz) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1862 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistmodel.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/qmmpui/playlistmodel.h') diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h index ce047d759..2f1dca2e4 100644 --- a/src/qmmpui/playlistmodel.h +++ b/src/qmmpui/playlistmodel.h @@ -205,6 +205,13 @@ public: { return m_queued_songs.indexOf(item); } + /*! + * Returns the number of items in the queue + */ + int queueSize() const + { + return m_queued_songs.size(); + } /*! * Returns current selection(playlist can contain a lot of selections, * this method returns selection which \b row belongs to) -- cgit v1.2.3-13-gbd6f