mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-23 19:25:55 +01:00
Propper cleanup
This commit is contained in:
parent
adcc257f53
commit
a8cbc962f5
@ -10,7 +10,7 @@
|
||||
|
||||
PBFPlugin::PBFPlugin()
|
||||
{
|
||||
_style = new Style();
|
||||
_style = new Style(this);
|
||||
|
||||
if (!_style->load(USER_CONFIG))
|
||||
if (!_style->load(GLOBAL_CONFIG))
|
||||
|
@ -1,6 +1,7 @@
|
||||
#ifndef STYLE_H
|
||||
#define STYLE_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <QVariantMap>
|
||||
#include <QStringList>
|
||||
@ -14,9 +15,11 @@ class QPainter;
|
||||
class QPainterPath;
|
||||
class Tile;
|
||||
|
||||
class Style
|
||||
class Style : public QObject
|
||||
{
|
||||
public:
|
||||
Style(QObject *parent = 0) : QObject(parent) {}
|
||||
|
||||
bool load(const QString &fileName);
|
||||
|
||||
void setZoom(int zoom) {_zoom = zoom;}
|
||||
|
Loading…
Reference in New Issue
Block a user