diff options
Diffstat (limited to 'src/svg/qsvgrenderer.h')
-rw-r--r-- | src/svg/qsvgrenderer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/svg/qsvgrenderer.h b/src/svg/qsvgrenderer.h index 4413509..3703b1c 100644 --- a/src/svg/qsvgrenderer.h +++ b/src/svg/qsvgrenderer.h @@ -56,6 +56,7 @@ QT_BEGIN_NAMESPACE class QSvgRendererPrivate; class QPainter; class QByteArray; +class QTransform; class Q_SVG_EXPORT QSvgRenderer : public QObject { @@ -64,6 +65,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 +82,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 +94,11 @@ public: QRectF boundsOnElement(const QString &id) const; bool elementExists(const QString &id) const; +#if QT_DEPRECATED_SINCE(5, 15) + QT_DEPRECATED_X("Use transformForElement()") QMatrix matrixForElement(const QString &id) const; +#endif // QT_DEPRECATED_SINCE(5, 15) + QTransform transformForElement(const QString &id) const; public Q_SLOTS: bool load(const QString &filename); |