diff options
author | Simon Rettberg | 2016-03-29 16:10:31 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-03-29 16:10:31 +0200 |
commit | 6cacb1191590223af6afab5c13acc3664b72e8e3 (patch) | |
tree | 94f3e2b29cc645d27716117ec14b965c82c7d311 /src/sessiontreemodel.cpp | |
parent | dur dur... (diff) | |
download | vmchooser2-6cacb1191590223af6afab5c13acc3664b72e8e3.tar.gz vmchooser2-6cacb1191590223af6afab5c13acc3664b72e8e3.tar.xz vmchooser2-6cacb1191590223af6afab5c13acc3664b72e8e3.zip |
Feature: Show warning for 64bit VMs if no VT-x available
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) { |