From 5f1db42cca3b5fde16c7f335ba61137f94f4009a Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 20 May 2007 23:31:44 +0000 Subject: [PATCH] should be const svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666821 --- svg.cpp | 4 ++-- svg.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/svg.cpp b/svg.cpp index 8cf3ffb98..2b4186871 100644 --- a/svg.cpp +++ b/svg.cpp @@ -177,7 +177,7 @@ void Svg::resize() d->size = d->renderer->defaultSize(); } -QSize Svg::elementSize(const QString& elementId) +QSize Svg::elementSize(const QString& elementId) const { if (!d->renderer) { d->renderer = new KSvgRenderer(Plasma::Theme::self()->image(d->themePath)); @@ -192,7 +192,7 @@ QSize Svg::elementSize(const QString& elementId) return elementSize.toSize(); } -QSize Svg::size() +QSize Svg::size() const { return d->size.toSize(); } diff --git a/svg.h b/svg.h index 8f6b04d30..fc3f513d6 100644 --- a/svg.h +++ b/svg.h @@ -120,14 +120,14 @@ class PLASMA_EXPORT Svg : public QObject * @arg elementId the id of the element to check * @return the current size of a given element **/ - QSize elementSize( const QString& elementId ); + QSize elementSize( const QString& elementId ) const; /** * Currently set size of the SVG * @arg elementId the id of the element to check * @return the current size of a given element **/ - QSize size(); + QSize size() const; Q_SIGNALS: void repaintNeeded();