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

17 lines
272 B
C++

#include "singleton.h"
#include <QQmlApplicationEngine>
namespace Global
{
Singleton* Singleton::instance()
{
static auto singleton = new Singleton();
return singleton;
}
QQmlApplicationEngine* Singleton::engine()
{
return &m_engine;
}
} // namespace Global