[Development] Changing qreal to a float

Thiago Macieira thiago.macieira at intel.com
Mon Feb 20 18:20:08 CET 2012


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.poenitz at 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 QRect$SUFFIX: public QBasicRect<$TYPE>
> > {
> > #ifdef Q_COMPILER_INHERITING_CONSTRUCTORS
> > 
> >     using QBasicRect<$TYPE>::QBasicRect;
> > 
> > #else
> > 
> >     /* insert here the constructors */
> > 
> > #endif
> > };
> 
> And add some constructor and functions such as
> QRect QRectF::toRect()

This one is inherited.

> QRectF::QRectF(const QRect)
> explicit QRectF::QRectF(const QRectD)

Those are the constructors I meant.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- 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://lists.qt-project.org/pipermail/development/attachments/20120220/67fe4769/attachment.sig>


More information about the Development mailing list