BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Functions | |
SessionItem * | ancestor (SessionItem *item, const QString &requiredModelType) |
Returns ancestor of given modelType for given item. More... | |
bool | isValidItem (SessionModel *model, SessionItem *item, const QModelIndex &parent) |
Iterates through all the model and returns true if item is found. This is to. More... | |
SessionItem * GUI::Model::Path::ancestor | ( | SessionItem * | item, |
const QString & | requiredModelType | ||
) |
Returns ancestor of given modelType for given item.
For example, returns corresponding jobItem owning ParameterItem via ParameterContainer.
Definition at line 32 of file ModelPath.cpp.
References SessionItem::modelType(), and SessionItem::parentItem().
bool GUI::Model::Path::isValidItem | ( | SessionModel * | model, |
SessionItem * | item, | ||
const QModelIndex & | parent | ||
) |
Iterates through all the model and returns true if item is found. This is to.
Definition at line 20 of file ModelPath.cpp.
References SessionModel::index(), SessionModel::itemForIndex(), and SessionModel::rowCount().
Referenced by FitParameterModel::isValidSourceItem().