Changeset View
Changeset View
Standalone View
Standalone View
src/qmlplugins.h
Show All 17 Lines | |||||
18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #ifndef _QML_PLUGINS_H | 22 | #ifndef _QML_PLUGINS_H | ||
23 | #define _QML_PLUGINS_H | 23 | #define _QML_PLUGINS_H | ||
24 | 24 | | |||
25 | #include <QQmlExtensionPlugin> | 25 | #include <QQmlExtensionPlugin> | ||
26 | #include <QQmlEngine> | ||||
26 | 27 | | |||
27 | class QmlPlugins : public QQmlExtensionPlugin | 28 | class QmlPlugins : public QQmlExtensionPlugin | ||
28 | { | 29 | { | ||
29 | Q_OBJECT | 30 | Q_OBJECT | ||
30 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") | 31 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") | ||
31 | 32 | | |||
32 | public: | 33 | public: | ||
33 | virtual void initializeEngine(QQmlEngine *engine, const char *uri); | 34 | virtual void initializeEngine(QQmlEngine *engine, const char *uri); | ||
34 | virtual void registerTypes(const char *uri); | 35 | virtual void registerTypes(const char *uri); | ||
35 | }; | 36 | }; | ||
36 | 37 | | |||
37 | #endif | 38 | #endif |