9 #include <QScopedPointer> 16 #include <QtQuick/QQuickPaintedItem> 21 class Q_DECL_EXPORT
LiveSvg:
public QQuickPaintedItem
25 Q_PROPERTY(QRectF viewBox READ getViewBox NOTIFY viewBoxChanged)
26 Q_PROPERTY(QString source READ getSource WRITE setSource NOTIFY
29 bool invert READ getInvert WRITE setInvert NOTIFY invertedChanged)
31 LiveSvg(QQuickItem *parent = 0);
34 void paint(QPainter *painter);
35 Q_INVOKABLE QVariant getOverlayElements()
const;
36 Q_INVOKABLE QString getSource()
const;
38 Q_INVOKABLE
void changeAttribute(QString, QString, QString);
39 bool getInvert()
const;
41 void setSource(
const QString &s);
44 QRectF getViewBox()
const;
48 void scaleChanged(QSizeF scale);
49 void viewBoxChanged();
51 void invertedChanged();
54 void updateBackgroundPixmap();
57 QScopedPointer<LiveSvgPrivate>
const d_ptr;