mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-13 06:34:42 -04:00
Updated code to support newer Qt versions (#237)
This commit is contained in:
parent
d1e47539fc
commit
34c8ad8dcc
28 changed files with 358 additions and 94 deletions
|
@ -40,7 +40,12 @@ USTATUS findFileRecursive(TreeModel *model, const UModelIndex index, const UStri
|
|||
|
||||
bool hasChildren = (model->rowCount(index) > 0);
|
||||
for (int i = 0; i < model->rowCount(index); i++) {
|
||||
#if ((QT_VERSION_MAJOR == 5) && (QT_VERSION_MINOR < 6)) || (QT_VERSION_MAJOR < 5)
|
||||
findFileRecursive(model, index.child(i, index.column()), hexPattern, mode, files);
|
||||
#else
|
||||
findFileRecursive(model, index.model()->index(i, index.column(), index), hexPattern, mode, files);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
UByteArray data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue