void CollectionModel::entry_changed (uint32_t id) { QList<uint32_t> pos = getPosById (id); for (int i = 0; i < pos.size (); i ++) { QModelIndex idx1 = index (pos.at (i), 0); QModelIndex idx2 = index (pos.at (i), m_columns.size ()); emit dataChanged(idx1, idx2); } }
QModelIndexList PlaylistModel::get_idxlist_by_id (uint32_t id) { QModelIndexList ret; QList<uint32_t> l = getPosById (id); for (int i = 0; i < l.count (); i++) { ret.append (index (l.at (i), 0)); } return ret; }