From c8ad6d6fadf6bd1402e8faab1f21f85c87047c5f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 29 Mar 2016 17:13:37 +0200 Subject: Use foreground instead of background for marking unusable vms --- src/sessiontreemodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sessiontreemodel.cpp') diff --git a/src/sessiontreemodel.cpp b/src/sessiontreemodel.cpp index 08b43e4..ac60ee9 100644 --- a/src/sessiontreemodel.cpp +++ b/src/sessiontreemodel.cpp @@ -53,8 +53,8 @@ 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::ForegroundRole) + return s->foregroundRole(); if (role == Qt::DecorationRole) { if (index.column() == 0) { // TODO: is this line needed? return s->icon(); -- cgit v1.2.3-55-g7522