aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-10-28 18:08:13 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-10-28 18:08:13 +0000
commite4dda5059cf63f8b10f6b15da845e3a91c03544f (patch)
treedaf4cd71a222c74c0e4684baa1e1d88acc999570
parent3923bd22cef390e6d0db82b9d3c6d79225b49adc (diff)
downloadqmmp-e4dda5059cf63f8b10f6b15da845e3a91c03544f.tar.gz
qmmp-e4dda5059cf63f8b10f6b15da845e3a91c03544f.tar.bz2
qmmp-e4dda5059cf63f8b10f6b15da845e3a91c03544f.zip
added removePlayList(int index) to api
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2459 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/qmmpui/playlistmanager.cpp5
-rw-r--r--src/qmmpui/playlistmanager.h6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/qmmpui/playlistmanager.cpp b/src/qmmpui/playlistmanager.cpp
index 852224e03..d23872cad 100644
--- a/src/qmmpui/playlistmanager.cpp
+++ b/src/qmmpui/playlistmanager.cpp
@@ -195,6 +195,11 @@ void PlayListManager::removePlayList(PlayListModel *model)
emit playListsChanged();
}
+void PlayListManager::removePlayList(int index)
+{
+ removePlayList(playListAt(index));
+}
+
void PlayListManager::move(int i, int j)
{
if(i < 0 || j < 0 || i == j)
diff --git a/src/qmmpui/playlistmanager.h b/src/qmmpui/playlistmanager.h
index f49341a74..41299f36d 100644
--- a/src/qmmpui/playlistmanager.h
+++ b/src/qmmpui/playlistmanager.h
@@ -191,7 +191,7 @@ public slots:
*/
void activatePlayList(PlayListModel *model);
/*!
- * Sets current playlist by \b index.
+ * Sets current playlist with index \b index.
*/
void activatePlayList(int index);
/*!
@@ -203,6 +203,10 @@ public slots:
*/
void removePlayList(PlayListModel *model);
/*!
+ * Removes playlist with index \b index.
+ */
+ void removePlayList(int index);
+ /*!
* Moves playlist with index \b i to index \b j.
*/
void move(int i, int j);