Lets use const.

REVIEW: 103009
This commit is contained in:
Mark Gaiser 2011-11-02 23:12:46 +01:00
parent 41bd519f43
commit f83a899bc8
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ QIconItem::~QIconItem()
{
}
void QIconItem::setIcon(QVariant &icon)
void QIconItem::setIcon(const QVariant &icon)
{
if(icon.canConvert<QIcon>()) {
m_icon = icon.value<QIcon>();

View File

@ -34,7 +34,7 @@ public:
QIconItem(QDeclarativeItem *parent=0);
~QIconItem();
void setIcon(QVariant &icon);
void setIcon(const QVariant &icon);
QIcon icon() const;
void setSmooth(const bool smooth);