diff --git a/src/fontloader.h b/src/fontloader.h index b73b4a33..6a1b8551 100644 --- a/src/fontloader.h +++ b/src/fontloader.h @@ -7,14 +7,17 @@ class FontLoader { public: - FontLoader() = default; - ~FontLoader() = default; - static FontLoader &getInstance() { static FontLoader instance; return instance; } + FontLoader(const FontLoader &) = delete; + void operator=(const FontLoader &) = delete; QFont loadFont(const QString &family, const QString &style, int pointSize); + +private: + FontLoader() = default; + ~FontLoader() = default; }; \ No newline at end of file