diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-14 09:59:14 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-14 09:59:14 +0000 |
| commit | 2e689e667c8f4a53b9147ee3f54189a955acbc29 (patch) | |
| tree | 3bd98ca7307d62050409d61e376010ea146cdfeb /src/qmmpui/playlistmodel.cpp | |
| parent | 3860a6037874458f9c3baf4f53ba32b1fcb462ab (diff) | |
| download | qmmp-2e689e667c8f4a53b9147ee3f54189a955acbc29.tar.gz qmmp-2e689e667c8f4a53b9147ee3f54189a955acbc29.tar.bz2 qmmp-2e689e667c8f4a53b9147ee3f54189a955acbc29.zip | |
added normal (w/o groups) playlist container
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3597 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.cpp')
| -rw-r--r-- | src/qmmpui/playlistmodel.cpp | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index 5af896e55..a1b6fe68d 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -34,6 +34,8 @@ #include "playlistparser.h" #include "playlistformat.h" #include "playlistcontainer_p.h" +#include "groupedcontainer_p.h" +#include "normalcontainer_p.h" #include "fileloader_p.h" #include "playstate_p.h" #include "detailsdialog.h" @@ -54,7 +56,8 @@ PlayListModel::PlayListModel(const QString &name, QObject *parent) m_stop_track = 0; m_play_state = new NormalPlayState(this); m_loader = new FileLoader(this); - m_container = new PlayListContainer; + m_container = new GroupedContainer; + //m_container = new NormalContainer; connect(m_loader, SIGNAL(newPlayListTrack(PlayListTrack*)), SLOT(add(PlayListTrack*)), Qt::QueuedConnection); connect(m_loader, SIGNAL(finished()), SLOT(preparePlayState())); @@ -503,25 +506,6 @@ void PlayListModel::moveItems(int from, int to) m_current = m_container->indexOf(m_current_track); emit listChanged(); } - - /*if (from > to) - foreach(int i, selected_indexes) - { - if (i + to - from < 0) - break; - - else - m_items.move(i,i + to - from); - } - else - - for (int i = selected_indexes.count() - 1; i >= 0; i--) - { - if (selected_indexes[i] + to -from >= m_items.count()) - break; - else - m_items.move(selected_indexes[i],selected_indexes[i] + to - from); - }*/ } int PlayListModel::topmostInSelection(int row) |
