aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/groupedcontainer.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-08-16 15:03:18 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-08-16 15:03:18 +0000
commita5a2707ad816bb423b5ea1086bc1286d0b97e2a2 (patch)
tree957ea76b5571dbf4210bbc7a7c969236293b32ca /src/qmmpui/groupedcontainer.cpp
parent955dc7e3a6318bda8868ea7d442d833e04b14650 (diff)
downloadqmmp-a5a2707ad816bb423b5ea1086bc1286d0b97e2a2.tar.gz
qmmp-a5a2707ad816bb423b5ea1086bc1286d0b97e2a2.tar.bz2
qmmp-a5a2707ad816bb423b5ea1086bc1286d0b97e2a2.zip
added possibility to disable groups (not working yet)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3612 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/groupedcontainer.cpp')
-rw-r--r--src/qmmpui/groupedcontainer.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qmmpui/groupedcontainer.cpp b/src/qmmpui/groupedcontainer.cpp
index 400490b53..1fd30dc04 100644
--- a/src/qmmpui/groupedcontainer.cpp
+++ b/src/qmmpui/groupedcontainer.cpp
@@ -255,6 +255,17 @@ bool GroupedContainer::move(QList<int> indexes, int from, int to)
return true;
}
+QList<PlayListTrack *> GroupedContainer::takeAllTracks()
+{
+ QList<PlayListTrack *> tracks;
+ foreach (PlayListGroup *g, m_groups)
+ {
+ tracks.append(g->takeAll());
+ }
+ clear();
+ return tracks;
+}
+
void GroupedContainer::clear()
{
while(!m_groups.isEmpty())