add a getter for the url property

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677940
This commit is contained in:
Aaron J. Seigo 2007-06-20 08:10:38 +00:00
parent f29bc49788
commit 2d0a8aa271
2 changed files with 6 additions and 0 deletions

View File

@ -297,6 +297,11 @@ void Icon::setUrl(const KUrl& url)
d->url = url;
}
KUrl Icon::url()
{
return d->url;
}
QSizeF Icon::size() const
{
return d->size;

View File

@ -58,6 +58,7 @@ class PLASMA_EXPORT Icon : public QObject,
void setIcon(const QIcon& icon);
void setUrl(const KUrl& url);
KUrl url();
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
QRectF boundingRect() const;