Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QList<SchedulesTableModel::Row> m_rows;
- ...
- for (int i = 0; i < m_rows.size(); ++i) {
- if (!activeSchedules.contains(m_rows[i].schedule.get_id())) {
- m_model->beginRemoveRows(QModelIndex(), i, i);
- m_rows.removeAt(i);
- --i;
- m_model->endRemoveRows();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement