diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-11-19 14:53:51 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-11-19 14:53:51 +0000 |
| commit | 68affedb5b13184a98d2704c5a43e7c789d41688 (patch) | |
| tree | 28d9157ccc18594e81310b05d826ad2f45bc1b8f /src/qmmpui/playlistmanager.cpp | |
| parent | 18fbe1b3f110066f663e1dd10793b94a529b4b2b (diff) | |
| download | qmmp-68affedb5b13184a98d2704c5a43e7c789d41688.tar.gz qmmp-68affedb5b13184a98d2704c5a43e7c789d41688.tar.bz2 qmmp-68affedb5b13184a98d2704c5a43e7c789d41688.zip | |
plalist browser: added sort buttons
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1385 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmanager.cpp')
| -rw-r--r-- | src/qmmpui/playlistmanager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qmmpui/playlistmanager.cpp b/src/qmmpui/playlistmanager.cpp index 4af84d1b4..a24d82a24 100644 --- a/src/qmmpui/playlistmanager.cpp +++ b/src/qmmpui/playlistmanager.cpp @@ -146,6 +146,17 @@ void PlayListManager::removePlayList(PlayListModel *model) emit playListsChanged(); } +void PlayListManager::move(int i, int j) +{ + if(i < 0 || j < 0) + return; + if(i < m_models.count() && j < m_models.count()) + { + m_models.move(i,j); + emit playListsChanged(); + } +} + void PlayListManager::setRepeatableList(bool r) { if(m_repeatable == r) |
