QModelIndex index (int row, int column, const QModelIndex &parent = QModelIndex()) const { if (parent.isValid () || column != 0 || !_effect || row >= _effect->GetNumberOfStages ()) { return QModelIndex (); } return createIndex (row, column); }
int rowCount (const QModelIndex &parent = QModelIndex()) const { if (parent.isValid () || !_effect) return 0; return _effect->GetNumberOfStages (); }