aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playlistmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui/playlistmodel.cpp')
-rw-r--r--src/qmmpui/playlistmodel.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp
index 9431bc954..ef77e72a4 100644
--- a/src/qmmpui/playlistmodel.cpp
+++ b/src/qmmpui/playlistmodel.cpp
@@ -224,7 +224,7 @@ bool PlayListModel::isGroup(int index) const
{
if (index > count()-1 || index < 0)
return false;
- return !m_container->item(index)->isGroup();
+ return m_container->item(index)->isGroup();
}
bool PlayListModel::next()
@@ -306,6 +306,20 @@ void PlayListModel::setSelected(int index, bool selected)
emit listChanged();
}
+void PlayListModel::setSelected(QList<PlayListTrack *> tracks, bool selected)
+{
+ foreach(PlayListTrack *t, tracks)
+ t->setSelected(selected);
+ emit listChanged();
+}
+
+void PlayListModel::setSelected(QList<PlayListItem *> items, bool selected)
+{
+ foreach(PlayListItem *i, items)
+ i->setSelected(selected);
+ emit listChanged();
+}
+
void PlayListModel::removeSelected()
{
removeSelection(false);