diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-12-22 20:03:07 -0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-01-03 16:52:24 -0200 |
commit | 5437c7b5b377d215baacea5f593559cfc9a6b7e6 (patch) | |
tree | dc0763ea54df76e5e49e974c15def9de7fa0a7d2 /platform/qt | |
parent | ecf1842a2635a72b9fb6101f6d26758776f2bbc9 (diff) | |
download | qtlocation-mapboxgl-5437c7b5b377d215baacea5f593559cfc9a6b7e6.tar.gz |
[Qt] Make some accessors Qt properties
Diffstat (limited to 'platform/qt')
-rw-r--r-- | platform/qt/include/qmapboxgl.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/platform/qt/include/qmapboxgl.hpp b/platform/qt/include/qmapboxgl.hpp index f54f3954ed..14fe1369cf 100644 --- a/platform/qt/include/qmapboxgl.hpp +++ b/platform/qt/include/qmapboxgl.hpp @@ -2,9 +2,10 @@ #define QMAPBOXGL_H #include <QMapbox> +#include <QMargins> #include <QObject> -#include <QSize> #include <QPointF> +#include <QSize> class QImage; class QMargins; @@ -78,6 +79,11 @@ class Q_DECL_EXPORT QMapboxGL : public QObject Q_PROPERTY(double zoom READ zoom WRITE setZoom) Q_PROPERTY(double bearing READ bearing WRITE setBearing) Q_PROPERTY(double pitch READ pitch WRITE setPitch) + Q_PROPERTY(QString styleJson READ styleJson WRITE setStyleJson) + Q_PROPERTY(QString styleUrl READ styleUrl WRITE setStyleUrl) + Q_PROPERTY(double scale READ scale WRITE setScale) + Q_PROPERTY(QMapbox::Coordinate coordinate READ coordinate WRITE setCoordinate) + Q_PROPERTY(QMargins margins READ margins WRITE setMargins) public: // Determines the orientation of the map. |