Remove Qt deps from UEFIFind and fix issues

This commit is contained in:
vit9696 2018-08-02 03:41:11 +03:00
parent 7d16c1d48d
commit 4d50d581fa
21 changed files with 275 additions and 225 deletions

View file

@ -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);
}
}