aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/groupedcontainer.cpp
diff options
context:
space:
mode:
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())