How to port KIntSpinBox::setSuffix

David Faure faure at kde.org
Tue Jun 3 17:25:54 UTC 2014


On Tuesday 03 June 2014 18:10:50 Kevin Ottens wrote:
> Hello,
> 
> On Tuesday 03 June 2014 17:59:18 David Faure wrote:
> > On Tuesday 03 June 2014 17:53:22 Kevin Ottens wrote:
> > > I'm not sure I get the reasoning leading to that conclusion. Can't be
> > > done
> > > upstream in Qt?
> > 
> > This is all about calling i18n() at runtime, from within the widget (when
> > the value changes), on a KLocalizedString member (-> i.e. it's based on a
> > delayed translation mechanism).
> 
> Ah OK, I see now.
> 
> BTW, just wondering if we wouldn't want that by composition instead of
> inheritance.

Hmm. We'd have something that connects to the valueChanged signal of the 
spinbox and adjusts the suffix. Harder to use in QtDesigner, though. 

> Won't we need the equivalent for QDoubleSpinBox too?

I'm not sure. Do you use singular or plural for 1.15? :-)
Did kdelibs4 have that functionality?

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140603/3e6e8ed5/attachment.sig>


More information about the Kde-frameworks-devel mailing list