From 671f88f9a7f5735e1c2bd512a13314d8ae5f929b Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 19 12月 2023 18:31:54 +0800 Subject: [PATCH] minor tweaks --- examples/mainwindow/main.cpp | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/examples/mainwindow/main.cpp b/examples/mainwindow/main.cpp index b0c9d25..9e86f81 100644 --- a/examples/mainwindow/main.cpp +++ b/examples/mainwindow/main.cpp @@ -1,6 +1,4 @@ #include <QtWidgets/QApplication> -#include <QtGui/QFont> -#include <QtCore/QDebug> #include "mainwindow.h" @@ -17,14 +15,6 @@ QGuiApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); QApplication a(argc, argv); - -#ifdef Q_OS_WINDOWS - a.setFont([]() { - QFont f(QStringLiteral("Microsoft YaHei UI")); - f.setPixelSize(15); - return f; - }()); -#endif MainWindow w; w.show(); -- Gitblit v1.9.1