Don't register user types as typedefs of void *
authorJoão Abecasis <joao.abecasis@nokia.com>
Wed, 8 Feb 2012 15:40:11 +0000 (16:40 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 15 Feb 2012 16:19:34 +0000 (17:19 +0100)
commitbad8ed60958f476329e39c4a90575e786364cac8
treeb138a849a105b49af2e950afb280aa4dbb90d1b0
parent620b21151255c4a1467e9ad0fe67136bf9d61b0d
Don't register user types as typedefs of void *

Attempting to register a previously registered type as a typedef is now
flagged by QMetaType as a binary compatibility breakage. This was being
triggered while building the examples:

    "QMetaType::registerTypedef: Binary compatibility break -- Type name
    'Application*' previously registered as typedef of 'Application*'
    [258], now registering as typedef of 'void*' [31]."

QMetaProperty::userType was introduced in Qt 4.2 and properly does what
the code was trying to do. Simplification ensued.

Change-Id: Ie0ea9336ba6382d99a0f815f189046c575e5a2c2
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
src/activeqt/container/qaxbase.cpp