Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/qmlplugin.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_PLUGIN_H | 22 | #ifndef _QML_PLUGIN_H | ||
23 | #define _QML_PLUGIN_H | 23 | #define _QML_PLUGIN_H | ||
24 | 24 | | |||
25 | #include <QQmlExtensionPlugin> | 25 | #include <QQmlExtensionPlugin> | ||
26 | 26 | /** | |||
27 | * \brief The QML plugin file. | ||||
28 | * | ||||
29 | * This takes the different classes in this folder and turns them into | ||||
30 | * a QML plugin, so the properties can be accessed and modified from a | ||||
31 | * QML file. | ||||
32 | */ | ||||
27 | class QmlPlugins : public QQmlExtensionPlugin | 33 | class QmlPlugins : public QQmlExtensionPlugin | ||
28 | { | 34 | { | ||
29 | Q_OBJECT | 35 | Q_OBJECT | ||
30 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") | 36 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") | ||
31 | public: | 37 | public: | ||
32 | void initializeEngine(QQmlEngine *engine, const char *uri) override; | 38 | void initializeEngine(QQmlEngine *engine, const char *uri) override; | ||
33 | void registerTypes(const char *uri) override; | 39 | void registerTypes(const char *uri) override; | ||
34 | }; | 40 | }; | ||
35 | 41 | | |||
36 | #endif | 42 | #endif |