Skip to content

Commit

Permalink
Merge pull request #1739 from Trial97/mod_icons
Browse files Browse the repository at this point in the history
fixed squished mod icons
  • Loading branch information
TheKodeToad authored Nov 6, 2023
2 parents 8eac0d3 + 5d92658 commit baa988e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions launcher/minecraft/mod/ModFolderModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ QVariant ModFolderModel::data(const QModelIndex& index, int role) const
}
return {};
}
case Qt::SizeHintRole:
if (column == ImageColumn) {
return QSize(32, 32);
}
return {};
case Qt::CheckStateRole:
switch (column) {
case ActiveColumn:
Expand Down
5 changes: 5 additions & 0 deletions launcher/minecraft/mod/ResourcePackFolderModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ QVariant ResourcePackFolderModel::data(const QModelIndex& index, int role) const
}
return m_resources[row]->internal_id();
}
case Qt::SizeHintRole:
if (column == ImageColumn) {
return QSize(32, 32);
}
return {};
case Qt::CheckStateRole:
switch (column) {
case ActiveColumn:
Expand Down
5 changes: 5 additions & 0 deletions launcher/minecraft/mod/TexturePackFolderModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ QVariant TexturePackFolderModel::data(const QModelIndex& index, int role) const
}
return {};
}
case Qt::SizeHintRole:
if (column == ImageColumn) {
return QSize(32, 32);
}
return {};
case Qt::CheckStateRole:
if (column == ActiveColumn) {
return m_resources[row]->enabled() ? Qt::Checked : Qt::Unchecked;
Expand Down

0 comments on commit baa988e

Please sign in to comment.