mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-24 03:35:54 +01:00
Propper cleanup
This commit is contained in:
parent
adcc257f53
commit
a8cbc962f5
@ -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))
|
||||||
|
@ -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;}
|
||||||
|
Loading…
Reference in New Issue
Block a user