diff --git a/include/ui/mapview.h b/include/ui/mapview.h index 5e012dbe..5838c4ae 100644 --- a/include/ui/mapview.h +++ b/include/ui/mapview.h @@ -57,9 +57,8 @@ public: Q_INVOKABLE void rotate(int degrees); Q_INVOKABLE void addText(QString text, int x, int y, QString color = "#000000", int fontSize = 12, int layer = 0); Q_INVOKABLE void addRect(int x, int y, int width, int height, QString borderColor = "#000000", QString fillColor = "transparent", int rounding = 0, int layer = 0); + Q_INVOKABLE void addPath(QList> coords, QString borderColor = "#000000", QString fillColor = "transparent", int layer = 0); Q_INVOKABLE void addPath(QList xCoords, QList yCoords, QString borderColor = "#000000", QString fillColor = "transparent", int layer = 0); - // TODO: Not invokable, haven't successfully tested 2D js array --> QList>. - void addPath(QList> coords, QString borderColor = "#000000", QString fillColor = "transparent", int layer = 0); Q_INVOKABLE void addImage(int x, int y, QString filepath, int layer = 0, bool useCache = true); Q_INVOKABLE void createImage(int x, int y, QString filepath, int width = -1, int height = -1, int xOffset = 0, int yOffset = 0, diff --git a/include/ui/overlay.h b/include/ui/overlay.h index 8df84e37..f951360d 100644 --- a/include/ui/overlay.h +++ b/include/ui/overlay.h @@ -6,6 +6,7 @@ #include #include #include +#include class OverlayItem { public: