From 183a825bdb8a794e8f04397500dd077df6c8539e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Mon, 24 Jun 2024 19:31:11 +0800 Subject: [PATCH] float --- LunaTranslator/LunaTranslator/gui/setting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/gui/setting.py b/LunaTranslator/LunaTranslator/gui/setting.py index c3f7290f..16215f03 100644 --- a/LunaTranslator/LunaTranslator/gui/setting.py +++ b/LunaTranslator/LunaTranslator/gui/setting.py @@ -144,7 +144,7 @@ class Setting(closeashidewindow): ) width = 0 fn = QFont() - fn.setPointSize(globalconfig["settingfontsize"] + 2) + fn.setPointSizeF(globalconfig["settingfontsize"] + 2) fn.setFamily(globalconfig["settingfonttype"]) fm = QFontMetrics(fn) for title in self.tab_widget.titles: