|
BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Handles all data roles for SessionItem.
Definition at line 23 of file SessionItemData.h.
Classes | |
| class | ItemData |
Public Member Functions | |
| QVariant | data (int role) const |
| QVector< int > | roles () const |
| bool | setData (int role, const QVariant &value) |
| Sets the data for given role. Returns true if data was changed. More... | |
Private Attributes | |
| QVector< ItemData > | m_values |
| QVariant SessionItemData::data | ( | int | role | ) | const |
Definition at line 39 of file SessionItemData.cpp.
References m_values.
Referenced by SessionItemData::ItemData::operator==().
| QVector< int > SessionItemData::roles | ( | ) | const |
| bool SessionItemData::setData | ( | int | role, |
| const QVariant & | value | ||
| ) |
Sets the data for given role. Returns true if data was changed.
Definition at line 51 of file SessionItemData.cpp.
References GUI::Util::Variant::IsTheSame(), and m_values.
|
private |
Definition at line 40 of file SessionItemData.h.