not using Q_GADGET to avoid having a moc file, that needs to be included
in the standalone mode of svg2qvg
This commit is contained in:
parent
3046650f0d
commit
06959dfc86
@ -9,6 +9,7 @@
|
|||||||
#include "QskGlobal.h"
|
#include "QskGlobal.h"
|
||||||
|
|
||||||
#include <qmetatype.h>
|
#include <qmetatype.h>
|
||||||
|
#include <qflags.h>
|
||||||
#include <qpaintdevice.h>
|
#include <qpaintdevice.h>
|
||||||
#include <qshareddata.h>
|
#include <qshareddata.h>
|
||||||
|
|
||||||
@ -20,19 +21,17 @@ class QPixmap;
|
|||||||
class QPainterPath;
|
class QPainterPath;
|
||||||
class QPaintEngine;
|
class QPaintEngine;
|
||||||
class QPaintEngineState;
|
class QPaintEngineState;
|
||||||
|
class QTransform;
|
||||||
|
|
||||||
class QSK_EXPORT QskGraphic : public QPaintDevice
|
class QSK_EXPORT QskGraphic : public QPaintDevice
|
||||||
{
|
{
|
||||||
Q_GADGET
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum RenderHint
|
enum RenderHint
|
||||||
{
|
{
|
||||||
RenderPensUnscaled = 0x1
|
RenderPensUnscaled = 0x1
|
||||||
};
|
};
|
||||||
|
|
||||||
Q_ENUM( RenderHint )
|
typedef QFlags< RenderHint > RenderHints;
|
||||||
Q_DECLARE_FLAGS( RenderHints, RenderHint )
|
|
||||||
|
|
||||||
enum CommandType
|
enum CommandType
|
||||||
{
|
{
|
||||||
@ -41,8 +40,7 @@ class QSK_EXPORT QskGraphic : public QPaintDevice
|
|||||||
Transformation = 1 << 2
|
Transformation = 1 << 2
|
||||||
};
|
};
|
||||||
|
|
||||||
Q_ENUM( CommandType )
|
typedef QFlags< CommandType > CommandTypes;
|
||||||
Q_DECLARE_FLAGS( CommandTypes, CommandType )
|
|
||||||
|
|
||||||
QskGraphic();
|
QskGraphic();
|
||||||
QskGraphic( const QskGraphic& );
|
QskGraphic( const QskGraphic& );
|
||||||
@ -64,7 +62,7 @@ class QSK_EXPORT QskGraphic : public QPaintDevice
|
|||||||
CommandTypes commandTypes() const;
|
CommandTypes commandTypes() const;
|
||||||
|
|
||||||
void render( QPainter* ) const;
|
void render( QPainter* ) const;
|
||||||
void render( QPainter*, const QskColorFilter& filter,
|
void render( QPainter*, const QskColorFilter&,
|
||||||
QTransform* initialTransform = nullptr ) const;
|
QTransform* initialTransform = nullptr ) const;
|
||||||
|
|
||||||
void render( QPainter*, const QSizeF&,
|
void render( QPainter*, const QSizeF&,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user