Render incompatibility highlight and warning

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2026-02-12 18:51:27 +00:00
parent 081d2f1e51
commit 9cb33b519f
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
6 changed files with 48 additions and 13 deletions

View file

@ -88,6 +88,8 @@ QVariant ModFolderModel::data(const QModelIndex& index, int role) const
int column = index.column();
switch (role) {
case Qt::BackgroundRole:
return rowBackground(row);
case Qt::DisplayRole:
switch (column) {
case VersionColumn: {
@ -96,8 +98,9 @@ QVariant ModFolderModel::data(const QModelIndex& index, int role) const
return tr("Folder");
case ResourceType::SINGLEFILE:
return tr("File");
default:
return at(row).version();
}
return at(row).version();
}
case SideColumn: {
return at(row).side();