From 1822d55bbba160e9a87cc9a533cafcc12fccaefb Mon Sep 17 00:00:00 2001 From: "Richard J. Moore" Date: Sun, 22 Jul 2007 17:41:47 +0000 Subject: [PATCH] Make the paint methods invokable svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690995 --- svg.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/svg.h b/svg.h index 90dd48db0..212258b3a 100644 --- a/svg.h +++ b/svg.h @@ -92,8 +92,8 @@ class PLASMA_EXPORT Svg : public QObject * @arg point the position to start drawing; the entire svg will be * drawn starting at this point. */ - void paint(QPainter* painter, const QPointF& point, - const QString& elementID = QString()); + Q_INVOKABLE void paint(QPainter* painter, const QPointF& point, + const QString& elementID = QString()); /** * Paints the SVG represented by this object @@ -101,8 +101,8 @@ class PLASMA_EXPORT Svg : public QObject * @arg x the horizontal coordinate to start painting from * @arg y the vertical coordinate to start painting from */ - void paint(QPainter* painter, int x, int y, - const QString& elementID = QString()); + Q_INVOKABLE void paint(QPainter* painter, int x, int y, + const QString& elementID = QString()); /** * Paints the SVG represented by this object @@ -111,8 +111,8 @@ class PLASMA_EXPORT Svg : public QObject * of the * drawn starting at this point. */ - void paint(QPainter* painter, const QRectF& rect, - const QString& elementID = QString()); + Q_INVOKABLE void paint(QPainter* painter, const QRectF& rect, + const QString& elementID = QString()); /** * Resizes the rendered image. Rendering will actually take place on