Re: KPushButton::setIcon(QIcon) broken?

2012-08-21 Thread Christoph Feck
On Wednesday 22 August 2012 00:54:12 Andreas Pakulat wrote: > // This doesn't work > KPushButton btn; > btn.setIcon(QIcon::fromTheme(QString::fromUtf8("list-add"))); > > // This does work, but is not generated by designer obviously > KPushButton btn; > btn.setIcon(KIcon(QIcon::fromTheme(QString::fr

KPushButton::setIcon(QIcon) broken?

2012-08-21 Thread Andreas Pakulat
Hi, before filing a bugreport against kdelibs, I'm wondering wether I may be missing something on this. The following code compiles, but does not generate a KPushButton with an icon, the icon is empty. Forcing the KIcon overload to be taken fixes that, but that does not work with designer-generate