diff --git a/src/atlas.cpp b/src/atlas.cpp index 80883171..2129829f 100644 --- a/src/atlas.cpp +++ b/src/atlas.cpp @@ -295,3 +295,9 @@ void Atlas::draw(QPainter *painter, const QRectF &rect, int mapIndex) map->draw(painter, pr); painter->translate(-offset); } + +void Atlas::unload() +{ + for (int i = 0; i < _maps.count(); i++) + _maps.at(i)->unload(); +} diff --git a/src/atlas.h b/src/atlas.h index 0383f877..871be6b0 100644 --- a/src/atlas.h +++ b/src/atlas.h @@ -29,6 +29,8 @@ public: void draw(QPainter *painter, const QRectF &rect); + void unload(); + bool isValid() const {return _valid;} const QString &errorString() const {return _errorString;}