1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-02 00:10:22 +02:00

Remove version from mod list in launcher

This commit is contained in:
Ivan Savenko 2024-06-08 16:00:45 +00:00
parent 448eeefc42
commit 7893f97646
3 changed files with 1 additions and 7 deletions

View File

@ -82,9 +82,6 @@ QVariant CModListModel::getValue(const CModEntry & mod, int field) const
case ModFields::NAME:
return mod.getValue("name");
case ModFields::VERSION:
return mod.getValue("version");
case ModFields::TYPE:
return modTypeName(mod.getValue("modType").toString());
@ -173,7 +170,6 @@ QVariant CModListModel::headerData(int section, Qt::Orientation orientation, int
QT_TRANSLATE_NOOP("ModFields", ""), // status icon
QT_TRANSLATE_NOOP("ModFields", ""), // status icon
QT_TRANSLATE_NOOP("ModFields", "Type"),
QT_TRANSLATE_NOOP("ModFields", "Version"),
};
if(role == Qt::DisplayRole && orientation == Qt::Horizontal)

View File

@ -22,7 +22,6 @@ enum EModFields
STATUS_ENABLED,
STATUS_UPDATE,
TYPE,
VERSION,
COUNT
};
}

View File

@ -102,9 +102,8 @@ void CModListView::setupModsView()
}
else //default //TODO: default high-DPI scaling
{
ui->allModsView->setColumnWidth(ModFields::NAME, 185);
ui->allModsView->setColumnWidth(ModFields::NAME, 220);
ui->allModsView->setColumnWidth(ModFields::TYPE, 75);
ui->allModsView->setColumnWidth(ModFields::VERSION, 60);
}
ui->allModsView->resizeColumnToContents(ModFields::STATUS_ENABLED);