mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Fix singleton access conditions
This commit is contained in:
parent
e0efc61115
commit
55e006bdf1
@ -50,13 +50,12 @@ signals:
|
||||
|
||||
private:
|
||||
explicit CommonFonts();
|
||||
|
||||
public:
|
||||
CommonFonts(CommonFonts &&) = delete;
|
||||
CommonFonts(const CommonFonts &) = delete;
|
||||
CommonFonts &operator=(CommonFonts &&) = delete;
|
||||
CommonFonts &operator=(const CommonFonts &) = delete;
|
||||
|
||||
public:
|
||||
static CommonFonts &instance();
|
||||
|
||||
[[nodiscard]] const QFont &uiFont() const;
|
||||
|
@ -114,14 +114,14 @@ signals:
|
||||
|
||||
private:
|
||||
explicit ThemeManager();
|
||||
|
||||
public:
|
||||
static ThemeManager &instance();
|
||||
ThemeManager(ThemeManager &&) = delete;
|
||||
ThemeManager(const ThemeManager &) = delete;
|
||||
ThemeManager &operator=(ThemeManager &&) = delete;
|
||||
ThemeManager &operator=(const ThemeManager &) = delete;
|
||||
|
||||
public:
|
||||
static ThemeManager &instance();
|
||||
|
||||
[[nodiscard]] int theme() const;
|
||||
[[nodiscard]] const QString &themeName() const;
|
||||
[[nodiscard]] const QJsonObject &colors() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user