Propper cleanup

This commit is contained in:
Martin Tůma 2018-11-01 08:19:23 +01:00
parent adcc257f53
commit a8cbc962f5
2 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,7 @@
PBFPlugin::PBFPlugin() PBFPlugin::PBFPlugin()
{ {
_style = new Style(); _style = new Style(this);
if (!_style->load(USER_CONFIG)) if (!_style->load(USER_CONFIG))
if (!_style->load(GLOBAL_CONFIG)) if (!_style->load(GLOBAL_CONFIG))

View File

@ -1,6 +1,7 @@
#ifndef STYLE_H #ifndef STYLE_H
#define STYLE_H #define STYLE_H
#include <QObject>
#include <QString> #include <QString>
#include <QVariantMap> #include <QVariantMap>
#include <QStringList> #include <QStringList>
@ -14,9 +15,11 @@ class QPainter;
class QPainterPath; class QPainterPath;
class Tile; class Tile;
class Style class Style : public QObject
{ {
public: public:
Style(QObject *parent = 0) : QObject(parent) {}
bool load(const QString &fileName); bool load(const QString &fileName);
void setZoom(int zoom) {_zoom = zoom;} void setZoom(int zoom) {_zoom = zoom;}