Marble

imageproviderplugin.cpp
1// SPDX-FileCopyrightText: 2024 Carl Schwan <carl@carlschwan.eu>
2// SPDX-License-Identifier: LGPL-2.1-or-later
3//
4#include "imageproviderplugin.h"
5#include "DeclarativeMapThemeManager.h"
6#include "MapThemeModel.h"
7
8void ImageProviderPlugin::registerTypes(const char *uri)
9{
10 qmlRegisterTypesAndRevisions<MapThemeModel>(uri, 254);
11}
12
13void ImageProviderPlugin::initializeEngine(QQmlEngine *engine, const char *)
14{
15 engine->addImageProvider(QStringLiteral("maptheme"), new MapThemeImageProvider);
16}
void addImageProvider(const QString &providerId, QQmlImageProviderBase *provider)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.