Set the font globally to fix an issue with HiDPI displays, update copyrights and organization name and domain

This commit is contained in:
Nikolaj Schlej 2022-12-07 12:25:57 -08:00
parent 6e7b46d791
commit 862cdb1931
2 changed files with 7 additions and 17 deletions

View file

@ -1,6 +1,6 @@
/* uefitool.cpp
Copyright (c) 2016, Nikolaj Schlej. All rights reserved.
Copyright (c) 2022, Nikolaj Schlej. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@ -974,18 +974,8 @@ void UEFITool::readSettings()
fontSize = settings.value("mainWindow/fontSize", 10).toInt();
#endif
currentFont = QFont(fontName, fontSize);
ui->infoEdit->setFont(currentFont);
ui->parserMessagesListWidget->setFont(currentFont);
ui->finderMessagesListWidget->setFont(currentFont);
ui->builderMessagesListWidget->setFont(currentFont);
ui->fitTableWidget->setFont(currentFont);
ui->securityEdit->setFont(currentFont);
ui->structureTreeView->setFont(currentFont);
searchDialog->ui->guidEdit->setFont(currentFont);
searchDialog->ui->hexEdit->setFont(currentFont);
hexViewDialog->setFont(currentFont);
goToAddressDialog->ui->hexSpinBox->setFont(currentFont);
goToBaseDialog->ui->hexSpinBox->setFont(currentFont);
currentFont.setStyleHint(QFont::Monospace);
QApplication::setFont(currentFont);
}
void UEFITool::writeSettings()

View file

@ -1,6 +1,6 @@
/* uefitool_main.cpp
Copyright (c) 2018, LongSoft. All rights reserved.
Copyright (c) 2022, Nikolaj Schlej. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@ -23,9 +23,9 @@ public:
UEFIToolApplication(int &argc, char **argv)
: QApplication(argc, argv)
{
setOrganizationName("LongSoft");
setOrganizationDomain("longsoft.org");
setApplicationName("UEFITool NE");
setOrganizationName("CodeRush");
setOrganizationDomain("coderush.me");
setApplicationName("UEFITool");
tool = new UEFITool();
}