add a getter for the url property
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677940
This commit is contained in:
parent
f29bc49788
commit
2d0a8aa271
@ -297,6 +297,11 @@ void Icon::setUrl(const KUrl& url)
|
|||||||
d->url = url;
|
d->url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
KUrl Icon::url()
|
||||||
|
{
|
||||||
|
return d->url;
|
||||||
|
}
|
||||||
|
|
||||||
QSizeF Icon::size() const
|
QSizeF Icon::size() const
|
||||||
{
|
{
|
||||||
return d->size;
|
return d->size;
|
||||||
|
@ -58,6 +58,7 @@ class PLASMA_EXPORT Icon : public QObject,
|
|||||||
void setIcon(const QIcon& icon);
|
void setIcon(const QIcon& icon);
|
||||||
|
|
||||||
void setUrl(const KUrl& url);
|
void setUrl(const KUrl& url);
|
||||||
|
KUrl url();
|
||||||
|
|
||||||
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
||||||
QRectF boundingRect() const;
|
QRectF boundingRect() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user