21 : QIdentityProxyModel(parent)
29 QIdentityProxyModel::setSourceModel(model);
35 if (role == Qt::ForegroundRole) {
41 return QIdentityProxyModel::data(index, role);
51 if (!item->isEnabled())
52 return QColor(Qt::gray);
Defines class InstrumentItem and all its children.
Defines class SessionDecorationModel.
Defines class SessionModel.
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)....
SessionItem * itemForIndex(const QModelIndex &index) const