[Qt] Forward style{JSON,URL} getters

This commit is contained in:
Bruno de Oliveira Abinader
2015-10-14 21:44:29 -07:00
committed by Thiago Marcos P. Santos
parent 01d50b7bd2
commit 814a12a63c
2 changed files with 13 additions and 0 deletions

View File

@@ -54,6 +54,9 @@ public:
void cycleDebugOptions();
QString styleJSON() const;
QString styleURL() const;
void setStyleJSON(const QString &);
void setStyleURL(const QString &);

View File

@@ -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());