mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Render incompatibility highlight and warning
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
081d2f1e51
commit
9cb33b519f
6 changed files with 48 additions and 13 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue