mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
Set the font globally to fix an issue with HiDPI displays, update copyrights and organization name and domain
This commit is contained in:
parent
6e7b46d791
commit
862cdb1931
@ -1,6 +1,6 @@
|
|||||||
/* uefitool.cpp
|
/* uefitool.cpp
|
||||||
|
|
||||||
Copyright (c) 2016, Nikolaj Schlej. All rights reserved.
|
Copyright (c) 2022, Nikolaj Schlej. All rights reserved.
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
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();
|
fontSize = settings.value("mainWindow/fontSize", 10).toInt();
|
||||||
#endif
|
#endif
|
||||||
currentFont = QFont(fontName, fontSize);
|
currentFont = QFont(fontName, fontSize);
|
||||||
ui->infoEdit->setFont(currentFont);
|
currentFont.setStyleHint(QFont::Monospace);
|
||||||
ui->parserMessagesListWidget->setFont(currentFont);
|
QApplication::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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void UEFITool::writeSettings()
|
void UEFITool::writeSettings()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* uefitool_main.cpp
|
/* uefitool_main.cpp
|
||||||
|
|
||||||
Copyright (c) 2018, LongSoft. All rights reserved.
|
Copyright (c) 2022, Nikolaj Schlej. All rights reserved.
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -23,9 +23,9 @@ public:
|
|||||||
UEFIToolApplication(int &argc, char **argv)
|
UEFIToolApplication(int &argc, char **argv)
|
||||||
: QApplication(argc, argv)
|
: QApplication(argc, argv)
|
||||||
{
|
{
|
||||||
setOrganizationName("LongSoft");
|
setOrganizationName("CodeRush");
|
||||||
setOrganizationDomain("longsoft.org");
|
setOrganizationDomain("coderush.me");
|
||||||
setApplicationName("UEFITool NE");
|
setApplicationName("UEFITool");
|
||||||
|
|
||||||
tool = new UEFITool();
|
tool = new UEFITool();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user