BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SessionItemData::ItemData Class Reference

Public Member Functions

 ItemData (int r=-1, const QVariant &v={})
 
bool operator== (const ItemData &other) const
 

Public Attributes

QVariant data
 
int role
 

Detailed Description

Definition at line 32 of file SessionItemData.h.

Constructor & Destructor Documentation

◆ ItemData()

SessionItemData::ItemData::ItemData ( int  r = -1,
const QVariant &  v = {} 
)

Definition at line 18 of file SessionItemData.cpp.

Member Function Documentation

◆ operator==()

bool SessionItemData::ItemData::operator== ( const ItemData other) const

Definition at line 20 of file SessionItemData.cpp.

21 {
22  return role == other.role && SessionItemUtils::IsTheSame(data, other.data);
23 }
bool IsTheSame(const QVariant &var1, const QVariant &var2)
Returns true if given variants have same type and value.

References SessionItemData::data(), data, SessionItemUtils::IsTheSame(), and role.

Here is the call graph for this function:

Member Data Documentation

◆ data

QVariant SessionItemData::ItemData::data

Definition at line 36 of file SessionItemData.h.

Referenced by operator==().

◆ role

int SessionItemData::ItemData::role

Definition at line 35 of file SessionItemData.h.

Referenced by operator==().


The documentation for this class was generated from the following files: