diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-07-03 17:41:39 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-07-03 17:41:39 +0000 |
| commit | 640d330c2491dd038cd2092313be8f6e0b252ede (patch) | |
| tree | c8b1880e281aefb2c877d30ef10d7969f15fb66b /src/qmmpui/playlistmodel.cpp | |
| parent | 9548b51896fd67e633605a10e52ef605741b98e7 (diff) | |
| download | qmmp-640d330c2491dd038cd2092313be8f6e0b252ede.tar.gz qmmp-640d330c2491dd038cd2092313be8f6e0b252ede.tar.bz2 qmmp-640d330c2491dd038cd2092313be8f6e0b252ede.zip | |
changed playlist model api
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3536 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.cpp')
| -rw-r--r-- | src/qmmpui/playlistmodel.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index 371d10701..bc83eda7d 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -272,35 +272,6 @@ void PlayListModel::clearSelection() emit listChanged(); } -QStringList PlayListModel::getTitles(int b,int l) -{ - QList <QString> m_titles; - for (int i = b;(i < b + l) &&(i < m_items.size()); ++i) - m_titles << m_items.at(i)->text(); - return m_titles; -} - -QStringList PlayListModel::getTimes(int b,int l) -{ - QStringList times; - int d = 0; - QString str; - for (int i = b; (i < b + l) && (i < m_items.size()); ++i) - { - d = m_items.at(i)->length(); - if(d > 3600) - str += QString("%1:%2").arg(d/3600).arg(d%3600/60, 2, 10, QChar('0')); - else - str += QString("%1").arg(d%3600/60); - str += QString(":%1").arg(d%60, 2, 10, QChar('0')); - if(!d) - str.clear(); - times << str; - str.clear(); - } - return times; -} - QList<PlayListItem *> PlayListModel::mid(int pos, int count) { return m_items.mid(pos, count); |
