diff --git a/src/map.cpp b/src/map.cpp index 5ea50d14..b228e0b0 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -6,7 +6,8 @@ #include "map.h" -Map::Map(const QString &name, const QString &url) +Map::Map(const QString &name, const QString &url, QObject *parent) + : QObject(parent) { _name = name; _url = url; diff --git a/src/map.h b/src/map.h index dd74fab2..69b53f43 100644 --- a/src/map.h +++ b/src/map.h @@ -30,9 +30,9 @@ signals: void loaded(); public: - Map(const QString &name, const QString &url); + Map(const QString &name, const QString &url, QObject *parent = 0); - const QString &name() {return _name;} + const QString &name() const {return _name;} void loadTiles(QList &list); private slots: