summaryrefslogtreecommitdiff
path: root/src/svg/qsvgrenderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/svg/qsvgrenderer.h')
-rw-r--r--src/svg/qsvgrenderer.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/svg/qsvgrenderer.h b/src/svg/qsvgrenderer.h
index 4413509..418da85 100644
--- a/src/svg/qsvgrenderer.h
+++ b/src/svg/qsvgrenderer.h
@@ -40,8 +40,6 @@
#ifndef QSVGRENDERER_H
#define QSVGRENDERER_H
-#include <QtGui/qmatrix.h>
-
#ifndef QT_NO_SVGRENDERER
#include <QtCore/qobject.h>
@@ -56,6 +54,7 @@ QT_BEGIN_NAMESPACE
class QSvgRendererPrivate;
class QPainter;
class QByteArray;
+class QTransform;
class Q_SVG_EXPORT QSvgRenderer : public QObject
{
@@ -64,6 +63,7 @@ class Q_SVG_EXPORT QSvgRenderer : public QObject
Q_PROPERTY(QRectF viewBox READ viewBoxF WRITE setViewBox)
Q_PROPERTY(int framesPerSecond READ framesPerSecond WRITE setFramesPerSecond)
Q_PROPERTY(int currentFrame READ currentFrame WRITE setCurrentFrame)
+ Q_PROPERTY(Qt::AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode)
public:
QSvgRenderer(QObject *parent = nullptr);
QSvgRenderer(const QString &filename, QObject *parent = nullptr);
@@ -80,6 +80,9 @@ public:
void setViewBox(const QRect &viewbox);
void setViewBox(const QRectF &viewbox);
+ Qt::AspectRatioMode aspectRatioMode() const;
+ void setAspectRatioMode(Qt::AspectRatioMode mode);
+
bool animated() const;
int framesPerSecond() const;
void setFramesPerSecond(int num);
@@ -89,7 +92,7 @@ public:
QRectF boundsOnElement(const QString &id) const;
bool elementExists(const QString &id) const;
- QMatrix matrixForElement(const QString &id) const;
+ QTransform transformForElement(const QString &id) const;
public Q_SLOTS:
bool load(const QString &filename);