Thanks. By coincidence I'd just read up about QSortFilterProxyModel last night.
One question I do still have though - in my code I am passing the data structures between the functions like so :
KZenAlbumModel( QList<KZenAlbum*> &albums, QObject *parent = 0 ) : QAbstractItemModel( parent ), m_albums( albums )
To copy to clipboard, switch view to plain text mode
My question is, is the album data being duplicated, or is a reference count just being implemented in albums? m_data is declared as :
QList<KZenAlbum*> &m_albums;
QList<KZenAlbum*> &m_albums;
To copy to clipboard, switch view to plain text mode
Bookmarks