MapLibre Native for Qt
|
A helper utility to manage image sources. More...
#include <QMapLibre/ImageParameter>
Signals | |
void | sourceUpdated () |
Signal emitted when the image source is updated. | |
Signals inherited from QMapLibre::StyleParameter | |
void | ready (StyleParameter *parameter) |
Signal emitted when the style parameter is ready. | |
void | updated (StyleParameter *parameter) |
Signal emitted when the style parameter is updated. | |
Public Member Functions | |
ImageParameter (QObject *parent=nullptr) | |
Default constructor. | |
QString | source () const |
Get the image source. | |
void | setSource (const QString &source) |
Set the image source. | |
Public Member Functions inherited from QMapLibre::StyleParameter | |
StyleParameter (QObject *parent=nullptr) | |
Default constructor. | |
bool | operator== (const StyleParameter &other) const |
Comparison operator. | |
bool | isReady () const |
Check if the style parameter is ready. | |
virtual QVariant | parsedProperty (const char *propertyName) const |
Get the property value. | |
bool | hasProperty (const char *propertyName) const |
Check for property existence. | |
void | updateProperty (const char *propertyName, const QVariant &value) |
Update property value. | |
QVariantMap | toVariantMap () const |
Return a map of all properties. | |
QString | styleId () const |
Return style identifier. | |
void | setStyleId (const QString &id) |
Set style identifier. | |
Protected Attributes | |
QString | m_source |
image source | |
Protected Attributes inherited from QMapLibre::StyleParameter | |
const int | m_initialPropertyCount = staticMetaObject.propertyCount() |
Number of properties in the base class. | |
bool | m_ready {} |
Ready status of the style parameter. | |
QString | m_styleId |
Style identifier of the parameter. | |
Additional Inherited Members | |
Public Slots inherited from QMapLibre::StyleParameter | |
void | updateNotify () |
Notify that the style parameter has been updated. | |
A helper utility to manage image sources.
void QMapLibre::ImageParameter::setSource | ( | const QString & | source | ) |
Set the image source.
source | image source to set. |
sourceUpdated() signal is emitted when the image source is updated.
|
nodiscard |
Get the image source.
QString
.