NE Alpha 44

+ support of MS Surface implementation of Intel Boot Guard
+ optional disabling Intel Boot Guard marking
This commit is contained in:
Alex Matrosov 2017-11-05 23:10:06 -08:00
parent 68df5a64a3
commit 02369442a2
8 changed files with 164 additions and 63 deletions

View file

@ -27,7 +27,7 @@ QVariant TreeModel::data(const UModelIndex &index, int role) const
return (const char*)item->data(index.column()).toLocal8Bit();
}
else if (role == Qt::BackgroundRole) {
if (marking(index) > 0) {
if (markingEnabled && marking(index) > 0) {
return QBrush((Qt::GlobalColor)marking(index));
}
}
@ -328,6 +328,11 @@ void TreeModel::setCompressed(const UModelIndex &index, const bool compressed)
emit dataChanged(index, index);
}
void TreeModel::TreeModel::setMarkingEnabled(const bool enabled)
{
markingEnabled = enabled; emit dataChanged(QModelIndex(), QModelIndex());
}
void TreeModel::setMarking(const UModelIndex &index, const UINT8 marking)
{
if (!index.isValid())