Re: [Development] Changing qreal to a float

2012-05-22 Thread Marco Bubke
Hi QMatrix4x4 is still qreal, which is still target depend? Is there any intention to change that? Best regards, Marco ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development

Re: [Development] Changing qreal to a float

2012-02-21 Thread Thiago Macieira
On terça-feira, 21 de fevereiro de 2012 06.34.35, BRM wrote: > Perhaps a template is not the best option? > Perhaps an abstract/virtual class that is derived from for the various > classes would be better? Perhaps templates are not the best option, but a class with virtuals definitely isn't. I don

Re: [Development] Changing qreal to a float

2012-02-21 Thread Thiago Macieira
On terça-feira, 21 de fevereiro de 2012 15.40.16, jan-arve.saet...@nokia.com wrote: > Sorry for top-posting from my N9... > > > I was thinking the same, but I'm afraid we can't change it, since it would > cause too many subtle bugs. > The best thing I can think is to deprecate it, and add a QRectS

Re: [Development] Changing qreal to a float

2012-02-21 Thread jan-arve.saether
Sorry for top-posting from my N9... I was thinking the same, but I'm afraid we can't change it, since it would cause too many subtle bugs. The best thing I can think is to deprecate it, and add a QRectS or QRectI, but I'm not utterly convinced... Jan-Arve 21.02.12 15:31 skrev ext Andreas A

Re: [Development] Changing qreal to a float

2012-02-21 Thread andre.poenitz
BRM [bm_witn...@yahoo.com] > Perhaps a template is not the best option? > Perhaps an abstract/virtual class that is derived from for the various > classes would be better? Not at all. The discuasion was initiiated by performance and size considerations. Andre' _

Re: [Development] Changing qreal to a float

2012-02-21 Thread BRM
> From: Thiago Macieira > On terça-feira, 21 de fevereiro de 2012 09.59.49, Marc Mutz wrote: >> A tangential question: should QRect be QBasicRect (in which case > it >> would  probably have a class invariant of right()-left()==width() instead >> of width()-1 as now. If there is a plan to move

Re: [Development] Changing qreal to a float

2012-02-21 Thread Andreas Aardal Hanssen
2012/2/21 Thiago Macieira > On terça-feira, 21 de fevereiro de 2012 09.59.49, Marc Mutz wrote: > > sure I'd like that), then keeping QRect and using QRectI = > QBasicRect > > could do the trick. > QRect must have the same semantics as it has today. Whether we want to add > a > *second* rectangle

Re: [Development] Changing qreal to a float

2012-02-21 Thread Thiago Macieira
On terça-feira, 21 de fevereiro de 2012 09.59.49, Marc Mutz wrote: > A tangential question: should QRect be QBasicRect (in which case it > would probably have a class invariant of right()-left()==width() instead > of width()-1 as now. If there is a plan to move to CRect semantics (not > sure I'd l

Re: [Development] Changing qreal to a float

2012-02-21 Thread Thiago Macieira
On terça-feira, 21 de fevereiro de 2012 10.02.24, Marc Mutz wrote: > One would disallow compilers to instantiate the template with C++11 extern > templates (this would be a good idea for all templates, esp. those with > arguments constrained to just a few potential types). All other compilers: > wh

Re: [Development] Changing qreal to a float

2012-02-21 Thread Marc Mutz
On Tuesday February 21 2012, André Somers wrote: > Op 21-2-2012 9:35, Thiago Macieira schreef: > > On terça-feira, 21 de fevereiro de 2012 08.24.52, Samuel Rødal wrote: > >> Also, I guess we'll want convenience functions "QRectD QRectF::toRectD() > >> const" etc. Can that be done with the typedefs

Re: [Development] Changing qreal to a float

2012-02-21 Thread Marc Mutz
On Tuesday February 21 2012, Thiago Macieira wrote: > On terça-feira, 21 de fevereiro de 2012 08.24.52, Samuel Rødal wrote: > > Also, I guess we'll want convenience functions "QRectD QRectF::toRectD() > > const" etc. Can that be done with the typedefs proposed above, or does > > it require having "

Re: [Development] Changing qreal to a float

2012-02-21 Thread Thiago Macieira
On terça-feira, 21 de fevereiro de 2012 09.38.58, André Somers wrote: > Just wondering: while I think using templates for these classes is a > good idea in principle, will using such template magic as you are > suggesting here hurt compilation times, both of Qt itself and Qt > applications using th

Re: [Development] Changing qreal to a float

2012-02-21 Thread André Somers
Op 21-2-2012 9:35, Thiago Macieira schreef: > On terça-feira, 21 de fevereiro de 2012 08.24.52, Samuel Rødal wrote: >> Also, I guess we'll want convenience functions "QRectD QRectF::toRectD() >> const" etc. Can that be done with the typedefs proposed above, or does >> it require having "QRectD QRec

Re: [Development] Changing qreal to a float

2012-02-21 Thread Thiago Macieira
On terça-feira, 21 de fevereiro de 2012 08.24.52, Samuel Rødal wrote: > Also, I guess we'll want convenience functions "QRectD QRectF::toRectD() > const" etc. Can that be done with the typedefs proposed above, or does > it require having "QRectD QRectD::toRectD() const" as well? With some template

Re: [Development] Changing qreal to a float

2012-02-20 Thread Samuel Rødal
On 02/20/2012 08:16 PM, ext Thiago Macieira wrote: > On segunda-feira, 20 de fevereiro de 2012 18.36.50, Marc Mutz wrote: >> Please look at the numbers that Boudewijn posted in the footnote (in the >> mail that you replied to) and realise that you need to keep qreal/QFooF in >> deprecated peace. I

Re: [Development] Changing qreal to a float

2012-02-20 Thread Thiago Macieira
On segunda-feira, 20 de fevereiro de 2012 18.36.50, Marc Mutz wrote: > Please look at the numbers that Boudewijn posted in the footnote (in the > mail that you replied to) and realise that you need to keep qreal/QFooF in > deprecated peace. I, too, know of too much customer code that'd break > oth

Re: [Development] Changing qreal to a float

2012-02-20 Thread Olivier Goffart
On Monday 20 February 2012 18:20:08 Thiago Macieira wrote: > On segunda-feira, 20 de fevereiro de 2012 17.47.49, Olivier Goffart wrote: > > On Monday 20 February 2012 17:38:42 Thiago Macieira wrote: > > > On segunda-feira, 20 de fevereiro de 2012 16.12.24, > > > andre.poen...@nokia.com > > > > > >

Re: [Development] Changing qreal to a float

2012-02-20 Thread andre.poenitz
Abecasis Joao wrote: > What's the porting effort for applications that use and depend on qreal? The effort depends mainly on whether there will be a way to have a "double" incarnation of the "coordinate classes". _If_ there is a *D set (e.g. the proposed thin wrapper around a *Base then the port

Re: [Development] Changing qreal to a float

2012-02-20 Thread Marc Mutz
On Monday February 20 2012, you wrote: > > Why not just use a typedef: > > > >   typedef QRectImpl QRect; > >   typedef QRectImpl QRectD; > >   typedef QRectImpl QRectF; > > To keep it source compatible with code using  forward-declarations of > QRectF etc. Not exactly a big issue, but no need to b

Re: [Development] Changing qreal to a float

2012-02-20 Thread Marc Mutz
On Monday February 20 2012, João Abecasis wrote: > Boudewijn Rempt wrote: > > Well, Qt is a library, a platform -- and that means that you cannot > > predict how and when classes and things like qreal will be used, and that > > if something is changed there, it _will_ mean a porting effort, > > pot

Re: [Development] Changing qreal to a float

2012-02-20 Thread Thiago Macieira
On segunda-feira, 20 de fevereiro de 2012 18.27.47, Mark wrote: > Qt4 was going to have a "qt4support" module right? No, that was never the intention. > Why not drop it out of > Qt5 and put it in the Qt4 support module? > That way users know it's deprecated and should not be used but does allow >

Re: [Development] Changing qreal to a float

2012-02-20 Thread Mark
2012/2/20 João Abecasis > > Boudewijn Rempt wrote: > > Well, Qt is a library, a platform -- and that means that you cannot > predict how and when classes and things like qreal will be used, and that > if something is changed there, it _will_ mean a porting effort, potentially > a big one. Heck, w

Re: [Development] Changing qreal to a float

2012-02-20 Thread Thiago Macieira
On segunda-feira, 20 de fevereiro de 2012 17.47.49, Olivier Goffart wrote: > On Monday 20 February 2012 17:38:42 Thiago Macieira wrote: > > On segunda-feira, 20 de fevereiro de 2012 16.12.24, > > andre.poen...@nokia.com > > > > wrote: > > > To keep it source compatible with code using forward-decl

Re: [Development] Changing qreal to a float

2012-02-20 Thread João Abecasis
Boudewijn Rempt wrote: > Well, Qt is a library, a platform -- and that means that you cannot predict > how and when classes and things like qreal will be used, and that if > something is changed there, it _will_ mean a porting effort, potentially a > big one. Heck, we haven't even really recove

Re: [Development] Changing qreal to a float

2012-02-20 Thread Samuel Rødal
On 02/20/2012 05:20 PM, ext Boudewijn Rempt wrote: > On Monday 20 February 2012 Feb, Samuel Rødal wrote: >> On 02/20/2012 04:58 PM, ext Christoph Feck wrote: >>> On Monday 20 February 2012 16:02:09 Thiago Macieira wrote: I also thought we had agreed that QRectF should be float on all plat

Re: [Development] Changing qreal to a float

2012-02-20 Thread Olivier Goffart
On Monday 20 February 2012 17:38:42 Thiago Macieira wrote: > On segunda-feira, 20 de fevereiro de 2012 16.12.24, andre.poen...@nokia.com > > wrote: > > To keep it source compatible with code using forward-declarations of > > QRectF etc. Not exactly a big issue, but no need to break it... > > To

Re: [Development] Changing qreal to a float

2012-02-20 Thread Thiago Macieira
On segunda-feira, 20 de fevereiro de 2012 16.12.24, andre.poen...@nokia.com wrote: > To keep it source compatible with code using forward-declarations of QRectF > etc. Not exactly a big issue, but no need to break it... To keep source compatibility with forward declarations, you need: class QRec

Re: [Development] Changing qreal to a float

2012-02-20 Thread Boudewijn Rempt
On Monday 20 February 2012 Feb, Samuel Rødal wrote: > On 02/20/2012 04:58 PM, ext Christoph Feck wrote: > > On Monday 20 February 2012 16:02:09 Thiago Macieira wrote: > >> I also thought we had agreed that QRectF should be float on all > >> platforms and we don't need double-precision geometric cla

Re: [Development] Changing qreal to a float

2012-02-20 Thread andre.poenitz
Marc Mutz [marc.m...@kdab.com] > On Monday February 20 2012, andre.poen...@nokia.com wrote: > > PS: If we agree that template QRectBase; class QRectF : > > QRectBase class QRectD : QRectBase etc would be acceptable > > for 5.0 I'd try to come up with a patch for (b). For (a) the short solution >

Re: [Development] Changing qreal to a float

2012-02-20 Thread Samuel Rødal
On 02/20/2012 04:58 PM, ext Christoph Feck wrote: > On Monday 20 February 2012 16:02:09 Thiago Macieira wrote: >> I also thought we had agreed that QRectF should be float on all >> platforms and we don't need double-precision geometric classes >> anyway. > > I think we agreed on the former, but hop

Re: [Development] Changing qreal to a float

2012-02-20 Thread Marc Mutz
On Monday February 20 2012, andre.poen...@nokia.com wrote: > PS: If we agree that  template QRectBase;  class QRectF : > QRectBase class QRectD : QRectBase etc would be acceptable > for 5.0 I'd try to come up with a patch for (b). For (a) the short solution > would be simply making the typedef unc

Re: [Development] Changing qreal to a float

2012-02-20 Thread Christoph Feck
On Monday 20 February 2012 16:02:09 Thiago Macieira wrote: > I also thought we had agreed that QRectF should be float on all > platforms and we don't need double-precision geometric classes > anyway. I think we agreed on the former, but hopefully not on the latter. Many geometric classes, such as

Re: [Development] Changing qreal to a float

2012-02-20 Thread andre.poenitz
Thiago Macieira wrote: > I also thought we had agreed that QRectF should be float on all platforms This part is fine with me. > [...] and we don't need double-precision geometric classes anyway. Such opinions have been voiced, there was, however, no consensus, at least not in the '"we" == "all

Re: [Development] Changing qreal to a float

2012-02-20 Thread Thiago Macieira
On segunda-feira, 20 de fevereiro de 2012 14.34.57, andre.poen...@nokia.com wrote: > Thiago Macieira [thiago.macie...@intel.com] > > > [...] How about we leave it defined to double in all platforms and > > deprecate it? > Replacing all 'qreal' occurrences with 'double' would be a significant > per

Re: [Development] Changing qreal to a float

2012-02-20 Thread Thiago Macieira
On segunda-feira, 20 de fevereiro de 2012 14.17.29, gunnar.sle...@nokia.com wrote: > > How about we leave it defined to double in all platforms and deprecate it? > > On embedded, this has the side effect that QML items would grow in size, and > quite significantly as well. In addition, parts of sce

Re: [Development] Changing qreal to a float

2012-02-20 Thread andre.poenitz
Thiago Macieira [thiago.macie...@intel.com] > [...] How about we leave it defined to double in all platforms and deprecate > it? Replacing all 'qreal' occurrences with 'double' would be a significant performance hit for some embedded people. Replacing all 'qreal' occurrences with 'float' spoil

Re: [Development] Changing qreal to a float

2012-02-20 Thread gunnar.sletta
On Feb 20, 2012, at 2:36 PM, ext Thiago Macieira wrote: > On segunda-feira, 20 de fevereiro de 2012 09.33.27, andre.poen...@nokia.com > wrote: >> This needlessly removes existing functionality. We promised to try >> hard to not do that in the Qt 4-> Qt 5 transition. Removing the typedef >> is es

Re: [Development] Changing qreal to a float

2012-02-20 Thread Thiago Macieira
On segunda-feira, 20 de fevereiro de 2012 09.33.27, andre.poen...@nokia.com wrote: > This needlessly removes existing functionality. We promised to try > hard to not do that in the Qt 4-> Qt 5 transition. Removing the typedef > is essentially a showstopper for people currently relying on double. >

Re: [Development] Changing qreal to a float

2012-02-20 Thread andre.poenitz
> Ramsay Lincoln (Nokia-MP/Brisbane) wrote: > On 02/17/2012 09:58 PM, ext lars.kn...@nokia.com wrote: > > On the idea itself I'd like to hear some more opinions. Removing qreal > > would cause some SC breakage, but you would also get a compile error on > > places that could break. Unfortunately the

Re: [Development] Changing qreal to a float

2012-02-20 Thread Thiago Macieira
On segunda-feira, 20 de fevereiro de 2012 14.05.22, craig.sc...@csiro.au wrote: > Rather than an outright removal, perhaps it would be better to simply #ifdef > it out with some way for devs to re-enable it. Thus, by default it will be > as though it was no longer defined (hence prompts people to u

Re: [Development] Changing qreal to a float

2012-02-19 Thread Craig.Scott
On 20/02/2012, at 1:29 PM, Lincoln Ramsay wrote: > On 02/17/2012 09:58 PM, ext lars.kn...@nokia.com wrote: >> On the idea itself I'd like to hear some more opinions. Removing qreal >> would cause some SC breakage, but you would also get a compile error on >> places that could break. Unfortunately

Re: [Development] Changing qreal to a float

2012-02-19 Thread Lincoln Ramsay
On 02/17/2012 09:58 PM, ext lars.kn...@nokia.com wrote: > On the idea itself I'd like to hear some more opinions. Removing qreal > would cause some SC breakage, but you would also get a compile error on > places that could break. Unfortunately the signal to noise ratio would > most likely be pretty

Re: [Development] Changing qreal to a float

2012-02-17 Thread lars.knoll
On 2/17/12 12:39 PM, "ext Atlant Schmidt" wrote: >João: > >> I think the even better approach, once the necessary changes are done >> inside Qt and things settle down, is to drop qreal completely. Don't >> pick float or real, don't define it. Or typedef it to some dummy type: >> >>class qreal

Re: [Development] Changing qreal to a float

2012-02-17 Thread Atlant Schmidt
João: > I think the even better approach, once the necessary changes are done > inside Qt and things settle down, is to drop qreal completely. Don't > pick float or real, don't define it. Or typedef it to some dummy type: > >class qreal_IsNoMore {}; >typedef qreal_IsNoMore qreal; > > Force

Re: [Development] Changing qreal to a float

2012-02-17 Thread joao.abecasis
Ben wrote: > The concerns are not the signals/slots. Yes, that is one aspect. > The concern is other code that uses qreal - e.g. people embedding it > in binary protocols, or using it in printf()'s, etc. > The vast majority of Qt is probably in the desktop arena, and there > qreal is a double; and

Re: [Development] Changing qreal to a float

2012-02-16 Thread maurice.kalinowski
> > > > On Thu, Feb 16, 2012 at 5:03 AM, wrote: > > > On 2/16/12 12:16 PM, "ext Giuseppe D'Angelo" > wrote: > > >>On 15 February 2012 22:56, Sean Harmer > wrote: > > >>> On 15/02/2012 11:53, andre.poen...@nokia.com wrote: > > Anyway. It's probably better to go for any kind of uniformity. I

Re: [Development] Changing qreal to a float

2012-02-16 Thread BRM
> From: "lars.kn...@nokia.com" > On 2/16/12 6:21 PM, "ext Girish Ramakrishnan" > > wrote: > >> Hi Lars, >> >> On Thu, Feb 16, 2012 at 5:03 AM,  wrote: >>> On 2/16/12 12:16 PM, "ext Giuseppe D'Angelo" > wrote: >>> On 15 February 2012 22:56, Sean Harmer > wrote: > On 15/02/2012

Re: [Development] Changing qreal to a float

2012-02-16 Thread andre.poenitz
Olivier Goffart wrote: > > I thought we were agreeing upon deprecating qreal (i.e leave it as-is) > > and use float and double explicitly inside Qt. At least, that's what I > > +1d for :) The patch above changes qreal and doesn't deprecate it. > > Can be done in another commit, > One after the mas

Re: [Development] Changing qreal to a float

2012-02-16 Thread lars.knoll
On 2/16/12 6:21 PM, "ext Girish Ramakrishnan" wrote: >Hi Lars, > >On Thu, Feb 16, 2012 at 5:03 AM, wrote: >> On 2/16/12 12:16 PM, "ext Giuseppe D'Angelo" wrote: >> >>>On 15 February 2012 22:56, Sean Harmer wrote: On 15/02/2012 11:53, andre.poen...@nokia.com wrote: > Anyway. It's prob

Re: [Development] Changing qreal to a float

2012-02-16 Thread Olivier Goffart
On Thursday 16 February 2012 09:21:34 Girish Ramakrishnan wrote: > Hi Lars, > > On Thu, Feb 16, 2012 at 5:03 AM, wrote: > > On 2/16/12 12:16 PM, "ext Giuseppe D'Angelo" wrote: > >>On 15 February 2012 22:56, Sean Harmer wrote: > >>> On 15/02/2012 11:53, andre.poen...@nokia.com wrote: > Any

Re: [Development] Changing qreal to a float

2012-02-16 Thread Girish Ramakrishnan
Hi Lars, On Thu, Feb 16, 2012 at 5:03 AM, wrote: > On 2/16/12 12:16 PM, "ext Giuseppe D'Angelo" wrote: > >>On 15 February 2012 22:56, Sean Harmer wrote: >>> On 15/02/2012 11:53, andre.poen...@nokia.com wrote: Anyway. It's probably better to go for any kind of uniformity. If that's sin

Re: [Development] Changing qreal to a float

2012-02-16 Thread Gábor Lehel
On Thu, Feb 16, 2012 at 2:03 PM, wrote: > On 2/16/12 12:16 PM, "ext Giuseppe D'Angelo" wrote: > >>On 15 February 2012 22:56, Sean Harmer wrote: >>> Why not make these classes into templates and have typedefs for the >>> float and double cases? It always confused me why QVectorD mixed >>> qreals

Re: [Development] Changing qreal to a float

2012-02-16 Thread lars.knoll
On 2/16/12 12:16 PM, "ext Giuseppe D'Angelo" wrote: >On 15 February 2012 22:56, Sean Harmer wrote: >> On 15/02/2012 11:53, andre.poen...@nokia.com wrote: >>> Anyway. It's probably better to go for any kind of uniformity. If >>>that's single precision, it should be made clear that QPolygonF/QRec

Re: [Development] Changing qreal to a float

2012-02-16 Thread Giuseppe D'Angelo
On 15 February 2012 22:56, Sean Harmer wrote: > On 15/02/2012 11:53, andre.poen...@nokia.com wrote: >> Anyway. It's probably better to go for any kind of uniformity. If that's >> single precision, it should be made clear  that QPolygonF/QRectF are not >> meant for applications needing "polygons"

Re: [Development] Changing qreal to a float

2012-02-16 Thread Thiago Macieira
On quinta-feira, 16 de fevereiro de 2012 08.28.22, Robin Burchell wrote: > On Thu, Feb 16, 2012 at 8:01 AM, Girish Ramakrishnan > > wrote: > > I think changing qreal to float will result in subtle porting bugs: > > like when a Qt4 QDataStream (a double) is read by Qt5 (which is now > > suddenly fl

Re: [Development] Changing qreal to a float

2012-02-15 Thread Robin Burchell
On Thu, Feb 16, 2012 at 8:01 AM, Girish Ramakrishnan wrote: > I think changing qreal to float will result in subtle porting bugs: > like when a Qt4 QDataStream (a double) is read by Qt5 (which is now > suddenly float). Huh? QDataStream doesn't have any stream operators for qreal, does it? The doc

Re: [Development] Changing qreal to a float

2012-02-15 Thread Girish Ramakrishnan
Hi, On Wed, Feb 15, 2012 at 3:26 AM, wrote: > On 2/15/12 12:11 PM, "ext Olivier Goffart" wrote: > >>On Wednesday 15 February 2012 22:02:10 craig.sc...@csiro.au wrote: >>> On 15/02/2012, at 8:58 PM, >>> >>wrote: >>> > On 2/15/12 10:28 AM, "ext Thiago Macieira" >>> > >>> > wrote: >>> >> On quar

Re: [Development] Changing qreal to a float

2012-02-15 Thread Sean Harmer
On 15/02/2012 11:53, andre.poen...@nokia.com wrote: > Anyway. It's probably better to go for any kind of uniformity. If that's > single precision, it should be made clear that QPolygonF/QRectF are not > meant for applications needing "polygons" in general. Maybe one should > consider adding som

Re: [Development] Changing qreal to a float

2012-02-15 Thread marius.storm-olsen
On 15/02/2012 07:45, ext Thiago Macieira wrote: > On quarta-feira, 15 de fevereiro de 2012 12.33.18, lars.kn...@nokia.com wrote: >> Just a small nitpick: You won't end up on the wrong side of the river. The >> earth has a diameter of around 4km. With 24 bits precision, you end up >> with a jitt

Re: [Development] Changing qreal to a float

2012-02-15 Thread BRM
> From: "lars.kn...@nokia.com" > On 2/15/12 12:11 PM, "ext Olivier Goffart" wrote: >> On Wednesday 15 February 2012 22:02:10 craig.sc...@csiro.au wrote: >>> On 15/02/2012, at 8:58 PM, >>> >> wrote: >>> > On 2/15/12 10:28 AM, "ext Thiago Macieira" > >>> > >>> > wrote: >>> >> On quarta-f

Re: [Development] Changing qreal to a float

2012-02-15 Thread Thiago Macieira
On quarta-feira, 15 de fevereiro de 2012 12.33.18, lars.kn...@nokia.com wrote: > Just a small nitpick: You won't end up on the wrong side of the river. The > earth has a diameter of around 4km. With 24 bits precision, you end up > with a jitter of just above 2m. You might get wet feet though ;-

Re: [Development] Changing qreal to a float

2012-02-15 Thread Cristian Adam
On 02/15/2012 01:17 PM, ext Olivier Goffart wrote: > On Wednesday 15 February 2012 07:38:44 gunnar.sle...@nokia.com wrote: >> The only questionable use case is geolocation. We know for a fact that >> floats have limitations in this area and both Qt3D and QtLocation make use >> of QVector[2|3|4]D an

Re: [Development] Changing qreal to a float

2012-02-15 Thread lars.knoll
On 2/15/12 12:53 PM, "ext andre.poen...@nokia.com" wrote: > >> Sletta Gunnar (Nokia-MP/Oslo) wrote: >> - Using "double" is pure waste for a lot of use cases. QRectF, >>QPointF, QPainter, QPolygonF, >> OpenGL, QMouseEvent, QTouchEvent, to name a few. None of these require >>the precision >> off

Re: [Development] Changing qreal to a float

2012-02-15 Thread Olivier Goffart
On Wednesday 15 February 2012 07:38:44 gunnar.sle...@nokia.com wrote: > The only questionable use case is geolocation. We know for a fact that > floats have limitations in this area and both Qt3D and QtLocation make use > of QVector[2|3|4]D and QMatrix4x4 which will now be a float. However, this >

Re: [Development] Changing qreal to a float

2012-02-15 Thread Thiago Macieira
On quarta-feira, 15 de fevereiro de 2012 12.11.27, Olivier Goffart wrote: > Then I tought about Qt has its own typedef for quintptr and quint64 and what > not, so we could as well keep qreal. > (But i'm far from being opposed, but then we can also deprecate all the > other ones) Those have other r

Re: [Development] Changing qreal to a float

2012-02-15 Thread andre.poenitz
> Sletta Gunnar (Nokia-MP/Oslo) wrote: > - Using "double" is pure waste for a lot of use cases. QRectF, QPointF, > QPainter, QPolygonF, > OpenGL, QMouseEvent, QTouchEvent, to name a few. None of these require the > precision > offered by double precision floating point. Whether having doub

Re: [Development] Changing qreal to a float

2012-02-15 Thread lars.knoll
On 2/15/12 12:11 PM, "ext Olivier Goffart" wrote: >On Wednesday 15 February 2012 22:02:10 craig.sc...@csiro.au wrote: >> On 15/02/2012, at 8:58 PM, >> >wrote: >> > On 2/15/12 10:28 AM, "ext Thiago Macieira" >> > >> > wrote: >> >> On quarta-feira, 15 de fevereiro de 2012 08.49.31, >>lars.kn...@

Re: [Development] Changing qreal to a float

2012-02-15 Thread Olivier Goffart
On Wednesday 15 February 2012 22:02:10 craig.sc...@csiro.au wrote: > On 15/02/2012, at 8:58 PM, wrote: > > On 2/15/12 10:28 AM, "ext Thiago Macieira" > > > > wrote: > >> On quarta-feira, 15 de fevereiro de 2012 08.49.31, lars.kn...@nokia.com > >> > >> wrote: > >>> I don't think it'll break to

Re: [Development] Changing qreal to a float

2012-02-15 Thread Craig.Scott
On 15/02/2012, at 8:58 PM, wrote: > On 2/15/12 10:28 AM, "ext Thiago Macieira" > wrote: > >> On quarta-feira, 15 de fevereiro de 2012 08.49.31, lars.kn...@nokia.com >> wrote: >>> I don't think it'll break too many places though, so I'm not too worried >>> about the change. >> >> It will. Ask

Re: [Development] Changing qreal to a float

2012-02-15 Thread lars.knoll
On 2/15/12 10:28 AM, "ext Thiago Macieira" wrote: >On quarta-feira, 15 de fevereiro de 2012 08.49.31, lars.kn...@nokia.com >wrote: >> I don't think it'll break too many places though, so I'm not too worried >> about the change. > >It will. Ask Ubuntu packagers for how much work they had to put in

Re: [Development] Changing qreal to a float

2012-02-15 Thread Thiago Macieira
On quarta-feira, 15 de fevereiro de 2012 08.49.31, lars.kn...@nokia.com wrote: > I don't think it'll break too many places though, so I'm not too worried > about the change. It will. Ask Ubuntu packagers for how much work they had to put in to fix the mismatches in KDE. We can assume that work is

Re: [Development] Changing qreal to a float

2012-02-15 Thread lars.knoll
On 2/15/12 9:26 AM, "ext Thiago Macieira" wrote: >On quarta-feira, 15 de fevereiro de 2012 07.38.44, >gunnar.sle...@nokia.com >wrote: >> Our initial idea was to change "qreal" to "double" to avoid any >>potential >> regression but the impact on size combined with the fact that the added >> precis

Re: [Development] Changing qreal to a float

2012-02-15 Thread Jedrzej Nowacki
On Wednesday 15. February 2012 08.38.44 ext gunnar.sle...@nokia.com wrote: > For some time we have wanted to unify the behavior of qreal on desktop and > embedded. Currently, qreal is defined to be double on desktop and to a > float on embedded. > > The reasons for unifying are: > > - Using "dou

Re: [Development] Changing qreal to a float

2012-02-15 Thread Kent Hansen
Den 15. feb. 2012 08:38, skrev ext gunnar.sle...@nokia.com: > For some time we have wanted to unify the behavior of qreal on desktop and > embedded. Currently, qreal is defined to be double on desktop and to a float > on embedded. > > The reasons for unifying are: > > - Using "double" is pure w

Re: [Development] Changing qreal to a float

2012-02-15 Thread Thiago Macieira
On quarta-feira, 15 de fevereiro de 2012 07.38.44, gunnar.sle...@nokia.com wrote: > Our initial idea was to change "qreal" to "double" to avoid any potential > regression but the impact on size combined with the fact that the added > precision is almost never needed changed our minds > (https://bug

[Development] Changing qreal to a float

2012-02-14 Thread gunnar.sletta
For some time we have wanted to unify the behavior of qreal on desktop and embedded. Currently, qreal is defined to be double on desktop and to a float on embedded. The reasons for unifying are: - Using "double" is pure waste for a lot of use cases. QRectF, QPointF, QPainter, QPolygonF, Open