39 static QObject *_utilsProvider( QQmlEngine *engine, QJSEngine *scriptEngine )
42 Q_UNUSED( scriptEngine )
48 qRegisterMetaType< QList<QgsMapLayer *> >(
"QList<QgsMapLayer*>" );
49 qRegisterMetaType< QgsAttributes > (
"QgsAttributes" );
50 qRegisterMetaType< QgsCoordinateReferenceSystem >(
"QgsCoordinateReferenceSystem" );
51 qRegisterMetaType< QgsCoordinateTransformContext >(
"QgsCoordinateTransformContext" );
52 qRegisterMetaType< QgsFeature > (
"QgsFeature" );
53 qRegisterMetaType< QgsFeatureId > (
"QgsFeatureId" );
54 qRegisterMetaType< QgsPoint >(
"QgsPoint" );
55 qRegisterMetaType< QgsPointXY >(
"QgsPointXY" );
57 qmlRegisterType< QgsProject >( uri, 0, 1,
"Project" );
58 qmlRegisterType< QgsQuickMapCanvasMap >( uri, 0, 1,
"MapCanvasMap" );
59 qmlRegisterType< QgsQuickMapSettings >( uri, 0, 1,
"MapSettings" );
60 qmlRegisterType< QgsQuickMessageLogModel >( uri, 0, 1,
"MessageLogModel" );
61 qmlRegisterType< QgsQuickScaleBarKit >( uri, 0, 1,
"ScaleBarKit" );
62 qmlRegisterType< QgsVectorLayer >( uri, 0, 1,
"VectorLayer" );
64 qmlRegisterSingletonType< QgsQuickUtils >( uri, 0, 1,
"Utils", _utilsProvider );
Encapsulating the common utilies for QgsQuick library.
void registerTypes(const char *uri)
Registers the QGIS QML types in the given uri.