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;