status-desktop/src-cpp/app/global/singleton.cpp

17 lines
272 B
C++
Raw Normal View History

2022-01-06 19:29:19 +00:00
#include "singleton.h"
#include <QQmlApplicationEngine>
namespace Global
{
Singleton* Singleton::instance()
{
static auto singleton = new Singleton();
return singleton;
2022-01-06 19:29:19 +00:00
}
QQmlApplicationEngine* Singleton::engine()
{
return &m_engine;
2022-01-06 19:29:19 +00:00
}
} // namespace Global