Esempio n. 1
0
	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);
	}
Esempio n. 2
0
	int rowCount (const QModelIndex &parent = QModelIndex()) const
	{
		if (parent.isValid () || !_effect) return 0;
		return _effect->GetNumberOfStages ();
	}