Em sexta-feira, 25 de março de 2011, às 14:39:22, John Tapsell escreveu: > I have a widget, KSignalPlotter, which plots data points. > > The usage is: > > KSignalPlotter plotter; > plotter.setUnit( ki18ncp("Units", "%1 second", "%1 seconds") ); > plotter.addBeam(Qt::red); > plotter.addSample( QList<qreal>() << 2 ); > > For example. > > The axis will then be labelled using the "unit" string. The precision > will be calculated automatically.
So you might have a graph showing 1, 2, and 3 where the unit is "2.2e4 seconds" ? Shouldn't you show instead 2.2e4, 4.4e4 and 6.6e4 with a unit of "seconds" ? -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Senior Product Manager - Nokia, Qt Development Frameworks PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
signature.asc
Description: This is a digitally signed message part.