[Qt] Forward style{JSON,URL} getters
This commit is contained in:
committed by
Thiago Marcos P. Santos
parent
01d50b7bd2
commit
814a12a63c
@@ -54,6 +54,9 @@ public:
|
||||
|
||||
void cycleDebugOptions();
|
||||
|
||||
QString styleJSON() const;
|
||||
QString styleURL() const;
|
||||
|
||||
void setStyleJSON(const QString &);
|
||||
void setStyleURL(const QString &);
|
||||
|
||||
|
||||
@@ -81,6 +81,16 @@ void QMapboxGL::cycleDebugOptions()
|
||||
d_ptr->mapObj->cycleDebugOptions();
|
||||
}
|
||||
|
||||
QString QMapboxGL::styleJSON() const
|
||||
{
|
||||
return QString::fromStdString(d_ptr->mapObj->getStyleJSON());
|
||||
}
|
||||
|
||||
QString QMapboxGL::styleURL() const
|
||||
{
|
||||
return QString::fromStdString(d_ptr->mapObj->getStyleURL());
|
||||
}
|
||||
|
||||
void QMapboxGL::setStyleJSON(const QString &style)
|
||||
{
|
||||
d_ptr->mapObj->setStyleJSON(style.toUtf8().constData());
|
||||
|
||||
Reference in New Issue
Block a user