Port to QIcon in APIs.

KIcon is only a 'factory type'.

git grep -l "const KIcon" | xargs sed -i 's/const KIcon\b/const QIcon/g'
git grep -l "QList<KIcon>" | xargs sed -i 's/QList<KIcon>/QList<QIcon>/g'
git grep -l "class KIcon;" | xargs sed -i 's/class KIcon;//'
git grep -l "KIcon\b[^()]*;" | xargs sed -i 's/KIcon\b\([^()]*\);/QIcon\1;/'
This commit is contained in:
Stephen Kelly 2012-02-10 10:02:05 +01:00
parent 9057ce0c70
commit 585976ebbc
2 changed files with 2 additions and 2 deletions

View File

@ -291,7 +291,7 @@ QAction *PushButton::action() const
return d->action;
}
void PushButton::setIcon(const KIcon &icon)
void PushButton::setIcon(const QIcon &icon)
{
nativeWidget()->setIcon(icon);
}

View File

@ -135,7 +135,7 @@ public:
*
* @since 4.4
*/
void setIcon(const KIcon &icon);
void setIcon(const QIcon &icon);
/**
* @return the icon of this button