|bool||isValid () const|
An invariant index that can be ALWAYS used to reference an item inside a QAbstractItemModel.
This class is meant to be used together with ModelInvariantRowMapper.
Member Function Documentation
Returns the current model index row for this invariant index.
This function calls the mapper and asks it to perform the persistent mapping. If this index isn't valid then the returned value is -1.
If you actually own the row mapper then you may save some clock cycles by calling the modelInvariantIndexToModelIndexRow() by your own. If you don't own the mapper then this function is the only way to go.
The documentation for this class was generated from the following files: