aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playlistmanager.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-07-06 19:34:58 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-07-06 19:34:58 +0000
commitb97d5da365d53ef73af199985d4f2091f863fd85 (patch)
tree01ff168fcb6c64e3a850d5ffb200deedf3e9a844 /src/qmmpui/playlistmanager.cpp
parent0c9515e6f8220fc847065a766f8be7612126f18a (diff)
downloadqmmp-b97d5da365d53ef73af199985d4f2091f863fd85.tar.gz
qmmp-b97d5da365d53ef73af199985d4f2091f863fd85.tar.bz2
qmmp-b97d5da365d53ef73af199985d4f2091f863fd85.zip
changed PlayListTask::sort and PlayListTask::sortSelection functions
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8112 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmanager.cpp')
-rw-r--r--src/qmmpui/playlistmanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qmmpui/playlistmanager.cpp b/src/qmmpui/playlistmanager.cpp
index febc5162d..a29c4338d 100644
--- a/src/qmmpui/playlistmanager.cpp
+++ b/src/qmmpui/playlistmanager.cpp
@@ -36,6 +36,7 @@ PlayListManager::PlayListManager(QObject *parent) : QObject(parent)
{
if(m_instance)
qFatal("PlayListManager: only one instance is allowed");
+ qRegisterMetaType<PlayListModel::SortMode>();
m_instance = this;
m_ui_settings = QmmpUiSettings::instance();
m_header = new PlayListHeaderModel(this);
@@ -447,12 +448,12 @@ void PlayListManager::reverseList()
m_selected->reverseList();
}
-void PlayListManager::sortSelection(int mode)
+void PlayListManager::sortSelection(PlayListModel::SortMode mode)
{
m_selected->sortSelection(mode);
}
-void PlayListManager::sort(int mode)
+void PlayListManager::sort(PlayListModel::SortMode mode)
{
m_selected->sort(mode);
}