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:
parent
9057ce0c70
commit
585976ebbc
@ -291,7 +291,7 @@ QAction *PushButton::action() const
|
|||||||
return d->action;
|
return d->action;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PushButton::setIcon(const KIcon &icon)
|
void PushButton::setIcon(const QIcon &icon)
|
||||||
{
|
{
|
||||||
nativeWidget()->setIcon(icon);
|
nativeWidget()->setIcon(icon);
|
||||||
}
|
}
|
||||||
|
@ -135,7 +135,7 @@ public:
|
|||||||
*
|
*
|
||||||
* @since 4.4
|
* @since 4.4
|
||||||
*/
|
*/
|
||||||
void setIcon(const KIcon &icon);
|
void setIcon(const QIcon &icon);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the icon of this button
|
* @return the icon of this button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user