Move main non Thread Objects to Smart Pointers

This commit is contained in:
LordGrey
2024-01-01 18:37:49 +01:00
parent 6df45507bf
commit 26102ca963
12 changed files with 166 additions and 243 deletions

View File

@@ -13,10 +13,9 @@ class EventHandler : public QObject
Q_OBJECT
public:
EventHandler();
~EventHandler() override;
static EventHandler* getInstance();
static QScopedPointer<EventHandler>& getInstance();
public slots:
@@ -40,6 +39,12 @@ protected:
Logger * _log {};
private:
EventHandler();
EventHandler(const EventHandler&) = delete;
EventHandler& operator=(const EventHandler&) = delete;
static QScopedPointer<EventHandler> instance;
bool _isSuspended;
bool _isIdle;
};