From 0396fdb01d12e51bd2cc63478819b366c0453d29 Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Sat, 6 Mar 2021 20:26:21 +0100 Subject: Moves all globals into a structure that can be deleted before the app exists. Fixes #193. --- src/documentstyle.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/documentstyle.hpp') diff --git a/src/documentstyle.hpp b/src/documentstyle.hpp index a960863..9f2decd 100644 --- a/src/documentstyle.hpp +++ b/src/documentstyle.hpp @@ -15,7 +15,14 @@ struct DocumentStyle AutoLightTheme = 2 }; - DocumentStyle(bool do_init = true); + struct DefaultFonts + { + QString regular, fixed; + + DefaultFonts(); + }; + + DocumentStyle(); void initialiseDefaultFonts(); -- cgit v1.2.3