From 862cdb19316dc84ae4211f9112f92bb3238b6777 Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Wed, 7 Dec 2022 12:25:57 -0800 Subject: [PATCH] Set the font globally to fix an issue with HiDPI displays, update copyrights and organization name and domain --- UEFITool/uefitool.cpp | 16 +++------------- UEFITool/uefitool_main.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/UEFITool/uefitool.cpp b/UEFITool/uefitool.cpp index 3d706bc..3f180a6 100644 --- a/UEFITool/uefitool.cpp +++ b/UEFITool/uefitool.cpp @@ -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() diff --git a/UEFITool/uefitool_main.cpp b/UEFITool/uefitool_main.cpp index d9b8907..3f83971 100644 --- a/UEFITool/uefitool_main.cpp +++ b/UEFITool/uefitool_main.cpp @@ -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(); }