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