File indexing completed on 2024-05-12 15:59:14

0001 /*
0002  * This file is part of the KDE project
0003  * SPDX-FileCopyrightText: 2014 Arjen Hiemstra <ahiemstra@heimr.nl>
0004  *
0005  * SPDX-License-Identifier: GPL-2.0-or-later
0006  */
0007 
0008 #ifndef QMLGLOBALENGINE_H
0009 #define QMLGLOBALENGINE_H
0010 
0011 #include "krita_sketch_export.h"
0012 
0013 class QQmlEngine;
0014 class KRITA_SKETCH_EXPORT QmlGlobalEngine
0015 {
0016 public:
0017     QQmlEngine* engine() const;
0018     void setEngine(QQmlEngine* engine);
0019 
0020     static QmlGlobalEngine* instance();
0021 
0022 private:
0023     QmlGlobalEngine();
0024     ~QmlGlobalEngine();
0025 
0026     QQmlEngine* m_engine;
0027 
0028     static QmlGlobalEngine* sm_instance;
0029 };
0030 
0031 #endif // QMLGLOBALENGINE_H