Make the paint methods invokable

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690995
This commit is contained in:
Richard J. Moore 2007-07-22 17:41:47 +00:00
parent e7fa9f4480
commit 1822d55bbb

12
svg.h
View File

@ -92,8 +92,8 @@ class PLASMA_EXPORT Svg : public QObject
* @arg point the position to start drawing; the entire svg will be * @arg point the position to start drawing; the entire svg will be
* drawn starting at this point. * drawn starting at this point.
*/ */
void paint(QPainter* painter, const QPointF& point, Q_INVOKABLE void paint(QPainter* painter, const QPointF& point,
const QString& elementID = QString()); const QString& elementID = QString());
/** /**
* Paints the SVG represented by this object * 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 x the horizontal coordinate to start painting from
* @arg y the vertical coordinate to start painting from * @arg y the vertical coordinate to start painting from
*/ */
void paint(QPainter* painter, int x, int y, Q_INVOKABLE void paint(QPainter* painter, int x, int y,
const QString& elementID = QString()); const QString& elementID = QString());
/** /**
* Paints the SVG represented by this object * Paints the SVG represented by this object
@ -111,8 +111,8 @@ class PLASMA_EXPORT Svg : public QObject
* of the * of the
* drawn starting at this point. * drawn starting at this point.
*/ */
void paint(QPainter* painter, const QRectF& rect, Q_INVOKABLE void paint(QPainter* painter, const QRectF& rect,
const QString& elementID = QString()); const QString& elementID = QString());
/** /**
* Resizes the rendered image. Rendering will actually take place on * Resizes the rendered image. Rendering will actually take place on