From 7aaec35dada41cc4580b0b416f6aee0af77a351a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20W=C3=B6bbeking?= Date: Wed, 20 Jun 2007 21:08:30 +0000 Subject: [PATCH] constify url() svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678187 --- widgets/icon.cpp | 2 +- widgets/icon.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/icon.cpp b/widgets/icon.cpp index 2cf59bfa0..5d58a4637 100644 --- a/widgets/icon.cpp +++ b/widgets/icon.cpp @@ -297,7 +297,7 @@ void Icon::setUrl(const KUrl& url) d->url = url; } -KUrl Icon::url() +KUrl Icon::url() const { return d->url; } diff --git a/widgets/icon.h b/widgets/icon.h index 9d1b29413..2b7680d69 100644 --- a/widgets/icon.h +++ b/widgets/icon.h @@ -58,7 +58,7 @@ class PLASMA_EXPORT Icon : public QObject, void setIcon(const QIcon& icon); void setUrl(const KUrl& url); - KUrl url(); + KUrl url() const; virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); QRectF boundingRect() const;