diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-11-21 11:26:23 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-11-21 11:26:23 +0000 |
| commit | 15921e6ffb7ba1926703d0cbe2add290be369266 (patch) | |
| tree | 1109cd0c44b06477d7feb7c4e65df6fe18a8497b /src/qmmpui/playlistmodel.cpp | |
| parent | 157b69f61f853e1487cb4f77a218d3fd3b1507bf (diff) | |
| download | qmmp-15921e6ffb7ba1926703d0cbe2add290be369266.tar.gz qmmp-15921e6ffb7ba1926703d0cbe2add290be369266.tar.bz2 qmmp-15921e6ffb7ba1926703d0cbe2add290be369266.zip | |
refactoring
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3921 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.cpp')
| -rw-r--r-- | src/qmmpui/playlistmodel.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index 50c364aa9..bcf1ed3cb 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -130,13 +130,13 @@ void PlayListModel::add(QList<PlayListTrack *> tracks) void PlayListModel::add(const QString &path) { - m_loader->load(path); + m_loader->add(path); loadPlaylist(path); } void PlayListModel::add(const QStringList &paths) { - m_loader->load(paths); + m_loader->add(paths); foreach(QString str, paths) { loadPlaylist(str); @@ -193,6 +193,7 @@ void PlayListModel::insert(int index, QList<PlayListTrack *> tracks) void PlayListModel::insert(int index, const QString &path) { + m_loader->insert(index, path); /*QFileInfo f_info(path); if (f_info.isDir()) m_loader->loadDirectory(path); @@ -205,6 +206,7 @@ void PlayListModel::insert(int index, const QString &path) void PlayListModel::insert(int index, const QStringList &paths) { + m_loader->insert(index, paths); /*foreach(QString str, paths) { add(str); @@ -814,7 +816,7 @@ void PlayListModel::loadPlaylist(const QString &f_name) if (QFileInfo(list.at(i)).isRelative()) list[i].prepend(QFileInfo(f_name).canonicalPath () + QDir::separator ()); } - m_loader->load(list); + m_loader->add(list); file.close(); } |
