15 #ifndef BORNAGAIN_GUI_VIEW_TOPLEVEL_SESSIONDECORATIONMODEL_H
16 #define BORNAGAIN_GUI_VIEW_TOPLEVEL_SESSIONDECORATIONMODEL_H
18 #include <QIdentityProxyModel>
34 QVariant
data(
const QModelIndex& index,
int role)
const override;
37 QVariant
textColor(
const QModelIndex& index)
const;
Provides decorations (text color, icons, etc) for SessionModel in SessionModelView context....
QVariant textColor(const QModelIndex &index) const
Returns text color. Disabled SessionItem's will appear in gray.
void setSessionModel(SessionModel *model)
QVariant data(const QModelIndex &index, int role) const override
SessionDecorationModel(QObject *parent, SessionModel *model=nullptr)
Base class for a GUI data item.
Base class for a GUI data collection. A collection is e.g. all real data (RealDataModel)....