21 for(
const QString &line :
qAsConst(data))
23 int index = line.indexOf(
":");
26 const QString &part = line.mid(index + 1).trimmed();
30 item.
m_songs <<
MusicSong(part.left(index).trimmed(), part.mid(index + 1).trimmed());
54 for(
int i = 0; i < items.count(); ++i)
59 data << QString(
"%1:%2 - %3").arg(++count).arg(song.path(), song.duration());
virtual bool writeBuffer(const MusicSongItemList &items) overridefinal
virtual bool readBuffer(MusicSongItemList &items) overridefinal
TTK_MODULE_EXPORT QStringList split(const QString &value, const QString &key=TTK_DEFAULT_STR)
The class of the read write interface.
The class of the music song item.
The class of the music song info.
The class of the ttk file interface.