diff options
author | Simon Rettberg | 2016-03-29 17:13:37 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-03-29 17:13:37 +0200 |
commit | c8ad6d6fadf6bd1402e8faab1f21f85c87047c5f (patch) | |
tree | 0af4a9bc88cec28a47e028ca625e04ba713a3db6 /src/sessiontreemodel.cpp | |
parent | Fix indentation (diff) | |
download | vmchooser2-c8ad6d6fadf6bd1402e8faab1f21f85c87047c5f.tar.gz vmchooser2-c8ad6d6fadf6bd1402e8faab1f21f85c87047c5f.tar.xz vmchooser2-c8ad6d6fadf6bd1402e8faab1f21f85c87047c5f.zip |
Use foreground instead of background for marking unusable vms
Diffstat (limited to 'src/sessiontreemodel.cpp')
-rw-r--r-- | src/sessiontreemodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |