mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-15 23:54:45 -04:00
Version 0.9.0
- fixed all interaction with file state - added application meny - added actions for changing compression method for selected compressed section
This commit is contained in:
parent
a858cc23f5
commit
bfd8edcdf9
11 changed files with 640 additions and 243 deletions
16
treeitem.cpp
16
treeitem.cpp
|
@ -174,7 +174,7 @@ QVariant TreeItem::data(int column) const
|
|||
case 1: //Action
|
||||
if (itemAction == TreeItem::Remove)
|
||||
return "X";
|
||||
if (itemAction == TreeItem::Reconstruct)
|
||||
if (itemAction == TreeItem::Rebuild)
|
||||
return "R";
|
||||
return QVariant();
|
||||
case 2: //Type
|
||||
|
@ -261,7 +261,6 @@ QByteArray TreeItem::tail() const
|
|||
return itemTail;
|
||||
}
|
||||
|
||||
|
||||
bool TreeItem::hasEmptyHeader() const
|
||||
{
|
||||
return itemHeader.isEmpty();
|
||||
|
@ -281,7 +280,20 @@ UINT8 TreeItem::action() const
|
|||
{
|
||||
return itemAction;
|
||||
}
|
||||
|
||||
void TreeItem::setAction(const UINT8 action)
|
||||
{
|
||||
itemAction = action;
|
||||
|
||||
// Set rebuild action for parent
|
||||
if (parentItem)
|
||||
parentItem->setAction(TreeItem::Rebuild);
|
||||
}
|
||||
|
||||
void TreeItem::setCompression(const UINT8 algorithm)
|
||||
{
|
||||
itemCompression = algorithm;
|
||||
|
||||
// Set rebuild action
|
||||
setAction(TreeItem::Rebuild);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue