Detect QMetaType::QReal from the definition of qreal
authorOlivier Goffart <ogoffart@woboq.com>
Mon, 27 Feb 2012 11:00:07 +0000 (12:00 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Feb 2012 19:52:45 +0000 (20:52 +0100)
commite2f295e27c10a9f3633344427959219caf63753d
tree8338981f6d2bd43cabd7cbba32024402380c9968
parent64e0560ff451676fc96dfadd21bef436ac25bb52
Detect QMetaType::QReal from the definition of qreal

Instead of relying to complex preprocessor expression that need to be
maintained to be kept the same as in qglobal.h

This aslo fix the case where QT_COORD_TYPE is defined (It is meant to be
defined to float or double, any other type would not make sense)

So now there should hopefully be only one place to change if one need to
adjust the type of qreal

Change-Id: I778312112603173562dbe675ab491b53d6cd2174
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
src/corelib/kernel/qmetatype.h