1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-04 01:42:44 +00:00

WIP: Playlist support

This commit is contained in:
Chris Josten 2021-05-21 15:46:30 +02:00
parent 228f81984b
commit fbc154fb56
16 changed files with 481 additions and 27 deletions

View file

@ -430,7 +430,7 @@ public:
}
// QList-like API
T& at(int index) { return m_array.at(index); }
const T& at(int index) { return m_array.at(index); }
/**
* @return the amount of objects in this model.
*/
@ -453,6 +453,10 @@ public:
this->endInsertRows();
};
QList<T> mid(int pos, int length = -1) {
return m_array.mid(pos, length);
}
void removeAt(int index) {
Q_ASSERT(index < size());
this->beginRemoveRows(QModelIndex(), index, index);