Finish up singleton refactoring into one giant class
This commit is contained in:
@@ -11,11 +11,13 @@ namespace singletons {
|
||||
|
||||
class FontManager
|
||||
{
|
||||
FontManager(const FontManager &) = delete;
|
||||
FontManager(FontManager &&) = delete;
|
||||
public:
|
||||
FontManager();
|
||||
|
||||
public:
|
||||
FontManager(const FontManager &) = delete;
|
||||
FontManager(FontManager &&) = delete;
|
||||
~FontManager() = delete;
|
||||
|
||||
enum Type : uint8_t {
|
||||
Tiny,
|
||||
Small,
|
||||
@@ -27,9 +29,6 @@ public:
|
||||
VeryLarge,
|
||||
};
|
||||
|
||||
// FontManager is initialized only once, on first use
|
||||
static FontManager &getInstance();
|
||||
|
||||
QFont &getFont(Type type, float scale);
|
||||
QFontMetrics &getFontMetrics(Type type, float scale);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user