diff options
Diffstat (limited to 'src/sessiontreemodel.cpp')
-rw-r--r-- | src/sessiontreemodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sessiontreemodel.cpp b/src/sessiontreemodel.cpp index d77555f..08b43e4 100644 --- a/src/sessiontreemodel.cpp +++ b/src/sessiontreemodel.cpp @@ -53,9 +53,11 @@ QVariant SessionTreeModel::data(const QModelIndex &index, int role) const { return s->shortDescription(); if (role == Qt::ToolTipRole) return s->description(); + if (role == Qt::BackgroundRole) + return s->backgroundRole(); if (role == Qt::DecorationRole) { if (index.column() == 0) { // TODO: is this line needed? - return s->icon(); + return s->icon(); } } } else if (role == Qt::DisplayRole) { |