[Development] Changing qreal to a float
andre.poenitz at nokia.com
andre.poenitz at nokia.com
Mon Feb 20 17:12:24 CET 2012
Marc Mutz [marc.mutz at kdab.com]
> On Monday February 20 2012, andre.poenitz at nokia.com wrote:
> > PS: If we agree that template <class T> QRectBase; class QRectF :
> > QRectBase<float> class QRectD : QRectBase<double> 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 unconditional, or in the luxury variant
> > to add a configure switch (which I'd try to avoid...)
>
> Why not just use a typedef:
>
> typedef QRectImpl<int> QRect;
> typedef QRectImpl<double> QRectD;
> typedef QRectImpl<float> QRectF;
To keep it source compatible with code using forward-declarations of QRectF etc.
Not exactly a big issue, but no need to break it...
Andre'
More information about the Development
mailing list