status-desktop/src-cpp/app/include/singleton.h

20 lines
283 B
C
Raw Normal View History

2022-01-06 19:29:19 +00:00
#pragma once
#include <QQmlApplicationEngine>
namespace Global
{
class Singleton
{
public:
QQmlApplicationEngine* engine();
static Singleton* instance();
private:
static Singleton* theInstance;
explicit Singleton();
QQmlApplicationEngine* m_engine;
};
} // namespace Global