mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-12 22:26:13 -04:00
Remove Qt deps from UEFIFind and fix issues
This commit is contained in:
parent
7d16c1d48d
commit
4d50d581fa
21 changed files with 275 additions and 225 deletions
|
@ -24,7 +24,7 @@ QVariant TreeModel::data(const UModelIndex &index, int role) const
|
|||
TreeItem *item = static_cast<TreeItem*>(index.internalPointer());
|
||||
|
||||
if (role == Qt::DisplayRole) {
|
||||
return (const char*)item->data(index.column()).toLocal8Bit();
|
||||
return item->data(index.column()).toLocal8Bit();
|
||||
}
|
||||
#if defined (QT_GUI_LIB)
|
||||
else if (role == Qt::BackgroundRole) {
|
||||
|
@ -34,7 +34,7 @@ QVariant TreeModel::data(const UModelIndex &index, int role) const
|
|||
}
|
||||
#endif
|
||||
else if (role == Qt::UserRole) {
|
||||
return (const char*)item->info().toLocal8Bit();
|
||||
return item->info().toLocal8Bit();
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
|
@ -556,4 +556,4 @@ goDeeper:
|
|||
}
|
||||
|
||||
return (parentIndex == index(0, 0) ? UModelIndex() : parentIndex);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue