Capitalize the mod categories
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
469f051e30
commit
7fed5e9173
@ -262,7 +262,14 @@ void ModFilterWidget::setCategories(const QList<ModPlatform::Category>& categori
|
|||||||
auto layout = new QVBoxLayout(ui->categoryGroup);
|
auto layout = new QVBoxLayout(ui->categoryGroup);
|
||||||
|
|
||||||
for (const auto& category : categories) {
|
for (const auto& category : categories) {
|
||||||
auto checkbox = new QCheckBox(category.name);
|
auto name = category.name;
|
||||||
|
name.replace("-", " ");
|
||||||
|
name.replace("&", "&&");
|
||||||
|
auto checkbox = new QCheckBox(name);
|
||||||
|
auto font = checkbox->font();
|
||||||
|
font.setCapitalization(QFont::Capitalize);
|
||||||
|
checkbox->setFont(font);
|
||||||
|
|
||||||
layout->addWidget(checkbox);
|
layout->addWidget(checkbox);
|
||||||
|
|
||||||
const QString id = category.id;
|
const QString id = category.id;
|
||||||
|
Loading…
Reference in New Issue
Block a user