1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
/*
* This file is part of the KDE project
* SPDX-FileCopyrightText: 2014 Arjen Hiemstra <ahiemstra@heimr.nl>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef QMLGLOBALENGINE_H
#define QMLGLOBALENGINE_H
class QQmlEngine;
class QmlGlobalEngine
{
public:
QQmlEngine *engine() const;
void setEngine(QQmlEngine *engine);
static QmlGlobalEngine *instance();
private:
QmlGlobalEngine();
~QmlGlobalEngine();
QQmlEngine *m_engine;
static QmlGlobalEngine *sm_instance;
};
#endif // QMLGLOBALENGINE_H
|