15 #ifndef BORNAGAIN_GUI_COREGUI_MODELS_SESSIONITEMUTILS_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_SESSIONITEMUTILS_H
61 bool IsTheSame(
const QVariant& var1,
const QVariant& var2);
Defines basic vectors in Z^3, R^3, C^3.
Defines info for GroupProperty, i.e.
QVariant DecorationRole(const SessionItem &item)
Returns tooltip for given item.
bool IsTheSame(const QVariant &var1, const QVariant &var2)
Returns true if given variants have same type and value.
int VariantType(const QVariant &variant)
Returns type of variant (additionally checks for user type).
QVariant CheckStateRole(const SessionItem &item)
Returns check state for given item.
QVariant ToolTipRole(const SessionItem &item, int ncol=0)
Returns tooltip for given item.
QVariant ForegroundRole(const SessionItem &item)
Returns text color for given item.
bool CompatibleVariantTypes(const QVariant &oldValue, const QVariant &newValue)
Returns true if variants has compatible types.
bool IsPositionRelated(const SessionItem &item)
Returns true if current item is related to the position on sample editor canvas.
bool IsValidGroup(const QString &group_type)
Returns true if there is registered group.
int ParentVisibleRow(const SessionItem &item)
Returns the row of the given item within its parent not accounting for all hidden items above.
int ParentRow(const SessionItem &item)
Returns the index of the given item within its parent. Returns -1 when no parent is set.
GroupInfo GetGroupInfo(const QString &group_type)
Returns GroupInfo for group property construction.
bool HasOwnAbundance(const SessionItem *item)