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:
parent
448eeefc42
commit
7893f97646
@ -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)
|
||||
|
@ -22,7 +22,6 @@ enum EModFields
|
||||
STATUS_ENABLED,
|
||||
STATUS_UPDATE,
|
||||
TYPE,
|
||||
VERSION,
|
||||
COUNT
|
||||
};
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user