marble
MarbleDeclarativePlugin.cpp
Go to the documentation of this file.
76 qmlRegisterUncreatableType<Marble::AbstractFloatItem>( uri, 0, 11, "FloatItem", "Do not create" );
83 // Register the global Marble object. Can be used in .qml files for requests like Marble.resolvePath("some/icon.png")
void setContextProperty(const QString &name, QObject *value)
Registers MarbleWidget, MarbleRunnerManager and MarbleThemeManager as QQml extensions for use in QML...
Definition: MarbleDeclarativePlugin.h:27
QVariant contextProperty(const QString &name) const
QDeclarativeContext * rootContext() const
void initializeEngine(QDeclarativeEngine *engine, const char *)
Overriding QQmlExtensionPlugin to register image provider.
Definition: MarbleDeclarativePlugin.cpp:80
void addImageProvider(const QString &providerId, QDeclarativeImageProvider *provider)
Provides access to global Marble related properties and methods to QML (intended to be registered as ...
Definition: MarbleDeclarativeObject.h:22
bool isValid() const
virtual void registerTypes(const char *uri)
Overriding QQmlExtensionPlugin to register types.
Definition: MarbleDeclarativePlugin.cpp:48
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.