Lets use const.
REVIEW: 103009
This commit is contained in:
parent
41bd519f43
commit
f83a899bc8
@ -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>();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user