How to port KIntSpinBox::setSuffix

Kevin Ottens ervin at kde.org
Tue Jun 3 15:53:22 UTC 2014


On Sunday 01 June 2014 10:34:07 David Faure wrote:
> On Friday 30 May 2014 07:54:45 Martin Gräßlin wrote:
> > Hi all,
> > 
> > while trying to get rid of kdelibs4support I stumbled [1] over
> > KIntSpinBox::setSuffix which allows to set a plural aware suffix. The
> > recommendation is to port to QSpinBox, but as far as I can see there is
> > suitable replacement for the plural aware suffix.
> > 
> > What is the best solution to port this without introducing regressions?
> 
> This appears to be missing currently.
> 
> Laurent Montel asked me the same question on May 18, and I answered:
> * this needs to be added to QSpinBox, but then that one would use the tr()
> translation system

That was the plan indeed.

> * so we also need a KPluralHandlingSpinBox in a KF5 framework, to use the
> ki18n translation system (basically resurrecting some code from
> kdelibs4support, I assume).

I'm not sure I get the reasoning leading to that conclusion. Can't be done 
upstream in Qt?

Regards.
-- 
Kévin Ottens, http://ervin.ipsquad.net

KDAB - proud supporter of KDE, http://www.kdab.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140603/4a283226/attachment.sig>


More information about the Kde-frameworks-devel mailing list