From 11e805de7820c768e93c4eaf1bf81b6af6c958cb Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Fri, 4 Feb 2022 23:01:53 +0200 Subject: [PATCH] qt: Fix font only applying to main window --- src/qt/qt_mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index 844edec63..8ca284a61 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -67,7 +67,7 @@ MainWindow::MainWindow(QWidget *parent) : #ifdef Q_OS_WINDOWS auto font_name = tr("FONT_NAME"); auto font_size = tr("FONT_SIZE"); - setFont(QFont(font_name, font_size.toInt())); + QApplication::setFont(QFont(font_name, font_size.toInt())); #endif mm = std::make_shared(this); @@ -1575,7 +1575,7 @@ void MainWindow::changeEvent(QEvent* event) { auto font_name = tr("FONT_NAME"); auto font_size = tr("FONT_SIZE"); - setFont(QFont(font_name, font_size.toInt())); + QApplication::setFont(QFont(font_name, font_size.toInt())); } #endif QWidget::changeEvent(event);