Remove a bunch of code maked for removal
Change-Id: I1bda415433b748a1b8408ef3b890a6de3e51b3ba Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
d107706ab9
commit
0915a08b33
@ -539,13 +539,12 @@ struct DefinedTypesFilter {
|
|||||||
#define QT_ADD_STATIC_METATYPE_ALIASES_ITER(MetaTypeName, MetaTypeId, AliasingName, RealNameStr) \
|
#define QT_ADD_STATIC_METATYPE_ALIASES_ITER(MetaTypeName, MetaTypeId, AliasingName, RealNameStr) \
|
||||||
{ RealNameStr, sizeof(RealNameStr) - 1, QMetaType::MetaTypeName },
|
{ RealNameStr, sizeof(RealNameStr) - 1, QMetaType::MetaTypeName },
|
||||||
|
|
||||||
#define QT_ADD_STATIC_METATYPE_HACKS_ITER(MetaTypeName, TypeId, Name) \
|
|
||||||
QT_ADD_STATIC_METATYPE(MetaTypeName, MetaTypeName, Name)
|
|
||||||
|
|
||||||
static const struct { const char * typeName; int typeNameLength; int type; } types[] = {
|
static const struct { const char * typeName; int typeNameLength; int type; } types[] = {
|
||||||
QT_FOR_EACH_STATIC_TYPE(QT_ADD_STATIC_METATYPE)
|
QT_FOR_EACH_STATIC_TYPE(QT_ADD_STATIC_METATYPE)
|
||||||
QT_FOR_EACH_STATIC_ALIAS_TYPE(QT_ADD_STATIC_METATYPE_ALIASES_ITER)
|
QT_FOR_EACH_STATIC_ALIAS_TYPE(QT_ADD_STATIC_METATYPE_ALIASES_ITER)
|
||||||
QT_FOR_EACH_STATIC_HACKS_TYPE(QT_ADD_STATIC_METATYPE_HACKS_ITER)
|
QT_ADD_STATIC_METATYPE(_, QMetaTypeId2<qreal>::MetaType, qreal)
|
||||||
{nullptr, 0, QMetaType::UnknownType}
|
{nullptr, 0, QMetaType::UnknownType}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -187,10 +187,6 @@ inline Q_DECL_CONSTEXPR int qMetaTypeId();
|
|||||||
#define QT_FOR_EACH_STATIC_WIDGETS_CLASS(F)\
|
#define QT_FOR_EACH_STATIC_WIDGETS_CLASS(F)\
|
||||||
F(QSizePolicy, 121, QSizePolicy) \
|
F(QSizePolicy, 121, QSizePolicy) \
|
||||||
|
|
||||||
// ### FIXME kill that set
|
|
||||||
#define QT_FOR_EACH_STATIC_HACKS_TYPE(F)\
|
|
||||||
F(QMetaTypeId2<qreal>::MetaType, -1, qreal)
|
|
||||||
|
|
||||||
// F is a tuple: (QMetaType::TypeName, QMetaType::TypeNameID, AliasingType, "RealType")
|
// F is a tuple: (QMetaType::TypeName, QMetaType::TypeNameID, AliasingType, "RealType")
|
||||||
#define QT_FOR_EACH_STATIC_ALIAS_TYPE(F)\
|
#define QT_FOR_EACH_STATIC_ALIAS_TYPE(F)\
|
||||||
F(ULong, -1, ulong, "unsigned long") \
|
F(ULong, -1, ulong, "unsigned long") \
|
||||||
@ -755,8 +751,6 @@ private:
|
|||||||
static bool registerDebugStreamOperatorFunction(const QtPrivate::AbstractDebugStreamFunction *f, int type);
|
static bool registerDebugStreamOperatorFunction(const QtPrivate::AbstractDebugStreamFunction *f, int type);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ### Qt6: FIXME: Remove the special Q_CC_MSVC handling, it was introduced to maintain BC.
|
|
||||||
#if !defined(Q_NO_TEMPLATE_FRIENDS) && !defined(Q_CC_MSVC)
|
|
||||||
#ifndef Q_CLANG_QDOC
|
#ifndef Q_CLANG_QDOC
|
||||||
template<typename, bool> friend struct QtPrivate::ValueTypeIsMetaType;
|
template<typename, bool> friend struct QtPrivate::ValueTypeIsMetaType;
|
||||||
template<typename, typename> friend struct QtPrivate::ConverterMemberFunction;
|
template<typename, typename> friend struct QtPrivate::ConverterMemberFunction;
|
||||||
@ -765,9 +759,6 @@ private:
|
|||||||
template<typename, bool> friend struct QtPrivate::AssociativeValueTypeIsMetaType;
|
template<typename, bool> friend struct QtPrivate::AssociativeValueTypeIsMetaType;
|
||||||
template<typename, bool> friend struct QtPrivate::IsMetaTypePair;
|
template<typename, bool> friend struct QtPrivate::IsMetaTypePair;
|
||||||
template<typename, typename> friend struct QtPrivate::MetaTypeSmartPointerHelper;
|
template<typename, typename> friend struct QtPrivate::MetaTypeSmartPointerHelper;
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
public:
|
|
||||||
#endif
|
#endif
|
||||||
static bool registerConverterFunction(const QtPrivate::AbstractConverterFunction *f, int from, int to);
|
static bool registerConverterFunction(const QtPrivate::AbstractConverterFunction *f, int from, int to);
|
||||||
static void unregisterConverterFunction(int from, int to);
|
static void unregisterConverterFunction(int from, int to);
|
||||||
|
Loading…
Reference in New Issue
Block a user