mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-21 18:55:22 -04:00
NE Alpha 44
+ support of MS Surface implementation of Intel Boot Guard + optional disabling Intel Boot Guard marking
This commit is contained in:
parent
68df5a64a3
commit
02369442a2
8 changed files with 164 additions and 63 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue