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:
parent
228f81984b
commit
fbc154fb56
16 changed files with 481 additions and 27 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue