6 changes: 3 additions & 3 deletions src/corelib/kernel/qsequentialiterable.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ inline QVariantRef<QSequentialIterator> &QVariantRef<QSequentialIterator>::opera
return *this;
}

Q_DECLARE_TYPEINFO(QSequentialIterable, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QSequentialIterable::iterator, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QSequentialIterable::const_iterator, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QSequentialIterable, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QSequentialIterable::iterator, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QSequentialIterable::const_iterator, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
8 changes: 4 additions & 4 deletions src/corelib/serialization/qxmlstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Q_CORE_EXPORT QXmlStreamAttribute {
{ return !operator==(other); }
};

Q_DECLARE_TYPEINFO(QXmlStreamAttribute, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QXmlStreamAttribute, Q_RELOCATABLE_TYPE);

// We export each out-of-line method invidually to prevent MSVC from
// exporting the whole QList class.
Expand Down Expand Up @@ -154,7 +154,7 @@ class Q_CORE_EXPORT QXmlStreamNamespaceDeclaration {
{ return !operator==(other); }
};

Q_DECLARE_TYPEINFO(QXmlStreamNamespaceDeclaration, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QXmlStreamNamespaceDeclaration, Q_RELOCATABLE_TYPE);
typedef QList<QXmlStreamNamespaceDeclaration> QXmlStreamNamespaceDeclarations;

class Q_CORE_EXPORT QXmlStreamNotationDeclaration {
Expand All @@ -175,7 +175,7 @@ class Q_CORE_EXPORT QXmlStreamNotationDeclaration {
{ return !operator==(other); }
};

Q_DECLARE_TYPEINFO(QXmlStreamNotationDeclaration, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QXmlStreamNotationDeclaration, Q_RELOCATABLE_TYPE);
typedef QList<QXmlStreamNotationDeclaration> QXmlStreamNotationDeclarations;

class Q_CORE_EXPORT QXmlStreamEntityDeclaration {
Expand All @@ -201,7 +201,7 @@ class Q_CORE_EXPORT QXmlStreamEntityDeclaration {
{ return !operator==(other); }
};

Q_DECLARE_TYPEINFO(QXmlStreamEntityDeclaration, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QXmlStreamEntityDeclaration, Q_RELOCATABLE_TYPE);
typedef QList<QXmlStreamEntityDeclaration> QXmlStreamEntityDeclarations;

class Q_CORE_EXPORT QXmlStreamEntityResolver
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/text/qchar.h
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ class Q_CORE_EXPORT QChar {
char16_t ucs;
};

Q_DECLARE_TYPEINFO(QChar, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QChar, Q_RELOCATABLE_TYPE);

#ifndef QT_NO_DATASTREAM
Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, QChar);
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/text/qlocale_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class Q_CORE_EXPORT QSystemLocale
friend class QSystemLocaleSingleton;
};
Q_DECLARE_TYPEINFO(QSystemLocale::QueryType, Q_PRIMITIVE_TYPE);
Q_DECLARE_TYPEINFO(QSystemLocale::CurrencyToStringArgument, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QSystemLocale::CurrencyToStringArgument, Q_RELOCATABLE_TYPE);
#endif

#if QT_CONFIG(icu)
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/text/qstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4456,7 +4456,7 @@ class qt_section_chunk {
qsizetype length;
QStringView string;
};
Q_DECLARE_TYPEINFO(qt_section_chunk, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(qt_section_chunk, Q_RELOCATABLE_TYPE);

static QString extractSections(const QList<qt_section_chunk> &sections, qsizetype start, qsizetype end,
QString::SectionFlags flags)
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/text/qstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class QLatin1String
qsizetype m_size;
const char *m_data;
};
Q_DECLARE_TYPEINFO(QLatin1String, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QLatin1String, Q_RELOCATABLE_TYPE);

// Qt 4.x compatibility

Expand Down
2 changes: 1 addition & 1 deletion src/corelib/thread/qthread_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class QPostEvent
: receiver(r), event(e), priority(p)
{ }
};
Q_DECLARE_TYPEINFO(QPostEvent, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QPostEvent, Q_RELOCATABLE_TYPE);

inline bool operator<(const QPostEvent &first, const QPostEvent &second)
{
Expand Down
4 changes: 2 additions & 2 deletions src/corelib/time/qdatetime.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Q_CORE_EXPORT QDate
friend Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QDate &);
#endif
};
Q_DECLARE_TYPEINFO(QDate, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QDate, Q_RELOCATABLE_TYPE);

class Q_CORE_EXPORT QTime
{
Expand Down Expand Up @@ -230,7 +230,7 @@ class Q_CORE_EXPORT QTime
friend Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QTime &);
#endif
};
Q_DECLARE_TYPEINFO(QTime, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTime, Q_RELOCATABLE_TYPE);

class QDateTimePrivate;

Expand Down
2 changes: 1 addition & 1 deletion src/corelib/time/qtimezone.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class Q_CORE_EXPORT QTimeZone
QSharedDataPointer<QTimeZonePrivate> d;
};

Q_DECLARE_TYPEINFO(QTimeZone::OffsetData, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTimeZone::OffsetData, Q_RELOCATABLE_TYPE);
Q_DECLARE_SHARED(QTimeZone)

#ifndef QT_NO_DATASTREAM
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/time/qtimezoneprivate_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class Q_AUTOTEST_EXPORT QTimeZonePrivate : public QSharedData
protected:
QByteArray m_id;
};
Q_DECLARE_TYPEINFO(QTimeZonePrivate::Data, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTimeZonePrivate::Data, Q_RELOCATABLE_TYPE);

template<> QTimeZonePrivate *QSharedDataPointer<QTimeZonePrivate>::clone();

Expand Down
2 changes: 1 addition & 1 deletion src/corelib/tools/qcommandlineparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class QCommandLineParserPrivate
//! True if parse() needs to be called
bool needsParsing;
};
Q_DECLARE_TYPEINFO(QCommandLineParserPrivate::PositionalArgumentDefinition, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QCommandLineParserPrivate::PositionalArgumentDefinition, Q_RELOCATABLE_TYPE);

QStringList QCommandLineParserPrivate::aliases(const QString &optionName) const
{
Expand Down
4 changes: 2 additions & 2 deletions src/corelib/tools/qline.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Q_CORE_EXPORT QLine
private:
QPoint pt1, pt2;
};
Q_DECLARE_TYPEINFO(QLine, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QLine, Q_RELOCATABLE_TYPE);

/*******************************************************************************
* class QLine inline members
Expand Down Expand Up @@ -274,7 +274,7 @@ class Q_CORE_EXPORT QLineF
private:
QPointF pt1, pt2;
};
Q_DECLARE_TYPEINFO(QLineF, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QLineF, Q_RELOCATABLE_TYPE);

/*******************************************************************************
* class QLineF inline members
Expand Down
4 changes: 2 additions & 2 deletions src/corelib/tools/qmargins.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class QMargins
}
};

Q_DECLARE_TYPEINFO(QMargins, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QMargins, Q_RELOCATABLE_TYPE);

/*****************************************************************************
QMargins stream functions
Expand Down Expand Up @@ -361,7 +361,7 @@ class QMarginsF
}
};

Q_DECLARE_TYPEINFO(QMarginsF, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QMarginsF, Q_RELOCATABLE_TYPE);

/*****************************************************************************
QMarginsF stream functions
Expand Down
4 changes: 2 additions & 2 deletions src/corelib/tools/qpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class QPoint
}
};

Q_DECLARE_TYPEINFO(QPoint, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QPoint, Q_RELOCATABLE_TYPE);

/*****************************************************************************
QPoint stream functions
Expand Down Expand Up @@ -323,7 +323,7 @@ class QPointF
}
};

Q_DECLARE_TYPEINFO(QPointF, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QPointF, Q_RELOCATABLE_TYPE);

/*****************************************************************************
QPointF stream functions
Expand Down
4 changes: 2 additions & 2 deletions src/corelib/tools/qrect.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class Q_CORE_EXPORT QRect
int x2;
int y2;
};
Q_DECLARE_TYPEINFO(QRect, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRect, Q_RELOCATABLE_TYPE);


/*****************************************************************************
Expand Down Expand Up @@ -625,7 +625,7 @@ class Q_CORE_EXPORT QRectF
qreal w;
qreal h;
};
Q_DECLARE_TYPEINFO(QRectF, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRectF, Q_RELOCATABLE_TYPE);


/*****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/tools/qringbuffer_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class QRingBuffer
};

Q_DECLARE_SHARED(QRingChunk)
Q_DECLARE_TYPEINFO(QRingBuffer, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRingBuffer, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
4 changes: 2 additions & 2 deletions src/corelib/tools/qshareddata.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ size_t qHash(const QExplicitlySharedDataPointer<T> &ptr, size_t seed = 0) noexce
return qHash(ptr.data(), seed);
}

template<typename T> Q_DECLARE_TYPEINFO_BODY(QSharedDataPointer<T>, Q_MOVABLE_TYPE);
template<typename T> Q_DECLARE_TYPEINFO_BODY(QExplicitlySharedDataPointer<T>, Q_MOVABLE_TYPE);
template<typename T> Q_DECLARE_TYPEINFO_BODY(QSharedDataPointer<T>, Q_RELOCATABLE_TYPE);
template<typename T> Q_DECLARE_TYPEINFO_BODY(QExplicitlySharedDataPointer<T>, Q_RELOCATABLE_TYPE);

#define QT_DECLARE_QSDP_SPECIALIZATION_DTOR(Class) \
template<> QSharedDataPointer<Class>::~QSharedDataPointer();
Expand Down
4 changes: 2 additions & 2 deletions src/corelib/tools/qsharedpointer_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -946,8 +946,8 @@ std::shared_ptr<X> qSharedPointerObjectCast(std::shared_ptr<T> &&src)

#endif

template<typename T> Q_DECLARE_TYPEINFO_BODY(QWeakPointer<T>, Q_MOVABLE_TYPE);
template<typename T> Q_DECLARE_TYPEINFO_BODY(QSharedPointer<T>, Q_MOVABLE_TYPE);
template<typename T> Q_DECLARE_TYPEINFO_BODY(QWeakPointer<T>, Q_RELOCATABLE_TYPE);
template<typename T> Q_DECLARE_TYPEINFO_BODY(QSharedPointer<T>, Q_RELOCATABLE_TYPE);


QT_END_NAMESPACE
Expand Down
4 changes: 2 additions & 2 deletions src/corelib/tools/qsize.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Q_CORE_EXPORT QSize
int wd;
int ht;
};
Q_DECLARE_TYPEINFO(QSize, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QSize, Q_RELOCATABLE_TYPE);

/*****************************************************************************
QSize stream functions
Expand Down Expand Up @@ -290,7 +290,7 @@ class Q_CORE_EXPORT QSizeF
qreal wd;
qreal ht;
};
Q_DECLARE_TYPEINFO(QSizeF, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QSizeF, Q_RELOCATABLE_TYPE);


/*****************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions src/corelib/tools/qversionnumber.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class QVersionNumber
friend Q_CORE_EXPORT size_t qHash(const QVersionNumber &key, size_t seed);
};

Q_DECLARE_TYPEINFO(QVersionNumber, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QVersionNumber, Q_RELOCATABLE_TYPE);

#ifndef QT_NO_DEBUG_STREAM
Q_CORE_EXPORT QDebug operator<<(QDebug, const QVersionNumber &version);
Expand Down Expand Up @@ -454,7 +454,7 @@ class QTypeRevision
};

static_assert(sizeof(QTypeRevision) == 2);
Q_DECLARE_TYPEINFO(QTypeRevision, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTypeRevision, Q_RELOCATABLE_TYPE);

#ifndef QT_NO_DEBUG_STREAM
Q_CORE_EXPORT QDebug operator<<(QDebug, const QTypeRevision &revision);
Expand Down
14 changes: 7 additions & 7 deletions src/gui/accessible/linux/qspi_struct_marshallers_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct QSpiObjectReference
QSpiObjectReference(const QDBusConnection& connection, const QDBusObjectPath& path)
: service(connection.baseService()), path(path) {}
};
Q_DECLARE_TYPEINFO(QSpiObjectReference, Q_MOVABLE_TYPE); // QDBusObjectPath is movable, even though it
Q_DECLARE_TYPEINFO(QSpiObjectReference, Q_RELOCATABLE_TYPE); // QDBusObjectPath is movable, even though it
// cannot be marked that way until Qt 6

QDBusArgument &operator<<(QDBusArgument &argument, const QSpiObjectReference &address);
Expand All @@ -96,7 +96,7 @@ struct QSpiAccessibleCacheItem
QString description;
QSpiUIntList state;
};
Q_DECLARE_TYPEINFO(QSpiAccessibleCacheItem, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QSpiAccessibleCacheItem, Q_RELOCATABLE_TYPE);

typedef QList<QSpiAccessibleCacheItem> QSpiAccessibleCacheArray;

Expand All @@ -109,7 +109,7 @@ struct QSpiAction
QString description;
QString keyBinding;
};
Q_DECLARE_TYPEINFO(QSpiAction, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QSpiAction, Q_RELOCATABLE_TYPE);

typedef QList<QSpiAction> QSpiActionArray;

Expand All @@ -121,7 +121,7 @@ struct QSpiEventListener
QString listenerAddress;
QString eventName;
};
Q_DECLARE_TYPEINFO(QSpiEventListener, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QSpiEventListener, Q_RELOCATABLE_TYPE);

typedef QList<QSpiEventListener> QSpiEventListenerArray;

Expand All @@ -138,7 +138,7 @@ struct QSpiTextRange {
QString contents;
QVariant v;
};
Q_DECLARE_TYPEINFO(QSpiTextRange, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QSpiTextRange, Q_RELOCATABLE_TYPE);

typedef QList<QSpiTextRange> QSpiTextRangeList;
typedef QMap <QString, QString> QSpiAttributeSet;
Expand All @@ -153,7 +153,7 @@ struct QSpiAppUpdate {
int type; /* Is an application added or removed */
QString address; /* D-Bus address of application added or removed */
};
Q_DECLARE_TYPEINFO(QSpiAppUpdate, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QSpiAppUpdate, Q_RELOCATABLE_TYPE);

QDBusArgument &operator<<(QDBusArgument &argument, const QSpiAppUpdate &update);
const QDBusArgument &operator>>(const QDBusArgument &argument, QSpiAppUpdate &update);
Expand All @@ -167,7 +167,7 @@ struct QSpiDeviceEvent {
QString text;
bool isText;
};
Q_DECLARE_TYPEINFO(QSpiDeviceEvent, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QSpiDeviceEvent, Q_RELOCATABLE_TYPE);

QDBusArgument &operator<<(QDBusArgument &argument, const QSpiDeviceEvent &event);
const QDBusArgument &operator>>(const QDBusArgument &argument, QSpiDeviceEvent &event);
Expand Down
2 changes: 1 addition & 1 deletion src/gui/image/qicon_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct QPixmapIconEngineEntry
QIcon::State state;
bool isNull() const {return (fileName.isEmpty() && pixmap.isNull()); }
};
Q_DECLARE_TYPEINFO(QPixmapIconEngineEntry, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QPixmapIconEngineEntry, Q_RELOCATABLE_TYPE);

inline QPixmapIconEngineEntry::QPixmapIconEngineEntry(const QString &file, const QImage &image, QIcon::Mode m, QIcon::State s)
: fileName(file), size(image.size()), scale(image.devicePixelRatio()), mode(m), state(s)
Expand Down
2 changes: 1 addition & 1 deletion src/gui/image/qiconloader_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ struct QIconDirInfo
short scale;
Type type;
};
Q_DECLARE_TYPEINFO(QIconDirInfo, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QIconDirInfo, Q_RELOCATABLE_TYPE);

class QIconLoaderEngineEntry
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/image/qmovie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class QFrameInfo
static inline QFrameInfo endMarker()
{ return QFrameInfo(true); }
};
Q_DECLARE_TYPEINFO(QFrameInfo, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QFrameInfo, Q_RELOCATABLE_TYPE);

class QMoviePrivate : public QObjectPrivate
{
Expand Down
4 changes: 2 additions & 2 deletions src/gui/itemmodels/qfilesystemmodel_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class QFileSystemModelNodePathKey : public QString
bool operator==(const QFileSystemModelNodePathKey &other) const { return !compare(other, Qt::CaseInsensitive); }
};

Q_DECLARE_TYPEINFO(QFileSystemModelNodePathKey, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QFileSystemModelNodePathKey, Q_RELOCATABLE_TYPE);

inline size_t qHash(const QFileSystemModelNodePathKey &key) { return qHash(key.toCaseFolded()); }
#else // Q_OS_WIN
Expand Down Expand Up @@ -316,7 +316,7 @@ class Q_GUI_EXPORT QFileSystemModelPrivate : public QAbstractItemModelPrivate
// not recursive, meaning we sort only what we see.
bool disableRecursiveSort = false;
};
Q_DECLARE_TYPEINFO(QFileSystemModelPrivate::Fetching, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QFileSystemModelPrivate::Fetching, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/gui/itemmodels/qstandarditemmodel_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class QStandardItemData
QVariant value;
inline bool operator==(const QStandardItemData &other) const { return role == other.role && value == other.value; }
};
Q_DECLARE_TYPEINFO(QStandardItemData, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QStandardItemData, Q_RELOCATABLE_TYPE);

#ifndef QT_NO_DATASTREAM

Expand Down
4 changes: 2 additions & 2 deletions src/gui/kernel/qevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ class Q_GUI_EXPORT QInputMethodEvent : public QEvent
int m_replacementStart;
int m_replacementLength;
};
Q_DECLARE_TYPEINFO(QInputMethodEvent::Attribute, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QInputMethodEvent::Attribute, Q_RELOCATABLE_TYPE);

class Q_GUI_EXPORT QInputMethodQueryEvent : public QEvent
{
Expand All @@ -745,7 +745,7 @@ class Q_GUI_EXPORT QInputMethodQueryEvent : public QEvent
friend QTypeInfo<QueryPair>;
QList<QueryPair> m_values;
};
Q_DECLARE_TYPEINFO(QInputMethodQueryEvent::QueryPair, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QInputMethodQueryEvent::QueryPair, Q_RELOCATABLE_TYPE);

#endif // QT_NO_INPUTMETHOD

Expand Down
2 changes: 1 addition & 1 deletion src/gui/kernel/qkeysequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ struct QModifKeyName {
int qt_key;
QString name;
};
Q_DECLARE_TYPEINFO(QModifKeyName, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QModifKeyName, Q_RELOCATABLE_TYPE);

Q_GLOBAL_STATIC(QList<QModifKeyName>, globalModifs)
Q_GLOBAL_STATIC(QList<QModifKeyName>, globalPortableModifs)
Expand Down
2 changes: 1 addition & 1 deletion src/gui/kernel/qpointingdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Q_GUI_EXPORT QPointingDeviceUniqueId
// In this case, m_numericId will then turn into an index into that array (or hash).
qint64 m_numericId;
};
Q_DECLARE_TYPEINFO(QPointingDeviceUniqueId, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QPointingDeviceUniqueId, Q_RELOCATABLE_TYPE);

Q_GUI_EXPORT size_t qHash(QPointingDeviceUniqueId key, size_t seed = 0) noexcept;

Expand Down
2 changes: 1 addition & 1 deletion src/gui/kernel/qshortcutmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ struct QShortcutEntry
QObject *owner;
QShortcutMap::ContextMatcher contextMatcher;
};
Q_DECLARE_TYPEINFO(QShortcutEntry, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShortcutEntry, Q_RELOCATABLE_TYPE);

#ifdef Dump_QShortcutMap
/*! \internal
Expand Down
2 changes: 1 addition & 1 deletion src/gui/math3d/qmatrix4x4.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(QMatrix4x4::Flags)
QT_WARNING_PUSH
QT_WARNING_DISABLE_FLOAT_COMPARE

Q_DECLARE_TYPEINFO(QMatrix4x4, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QMatrix4x4, Q_RELOCATABLE_TYPE);

inline QMatrix4x4::QMatrix4x4
(float m11, float m12, float m13, float m14,
Expand Down
2 changes: 1 addition & 1 deletion src/gui/math3d/qquaternion.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ QT_WARNING_POP
float wp, xp, yp, zp;
};

Q_DECLARE_TYPEINFO(QQuaternion, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QQuaternion, Q_RELOCATABLE_TYPE);

inline QQuaternion::QQuaternion() : wp(1.0f), xp(0.0f), yp(0.0f), zp(0.0f) {}

Expand Down
2 changes: 1 addition & 1 deletion src/gui/painting/qcolor.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class Q_GUI_EXPORT QColor
: cspec(spec), ct(a1, a2, a3, a4, a5) {}
#endif // Q_COMPILER_UNIFORM_INIT
};
Q_DECLARE_TYPEINFO(QColor, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QColor, Q_RELOCATABLE_TYPE);

inline QColor::QColor(QLatin1String aname)
{ setNamedColor(aname); }
Expand Down
2 changes: 1 addition & 1 deletion src/gui/painting/qpageranges.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Q_GUI_EXPORT QDebug operator<<(QDebug dbg, const QPageRanges &pageRanges);
#endif

Q_DECLARE_SHARED(QPageRanges)
Q_DECLARE_TYPEINFO(QPageRanges::Range, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QPageRanges::Range, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/gui/painting/qpainter_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class QPainterClipInfo

};

Q_DECLARE_TYPEINFO(QPainterClipInfo, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QPainterClipInfo, Q_RELOCATABLE_TYPE);

class Q_GUI_EXPORT QPainterState : public QPaintEngineState
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/painting/qplatformbackingstore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct QBackingstoreTextureInfo
QPlatformTextureList::Flags flags;
};

Q_DECLARE_TYPEINFO(QBackingstoreTextureInfo, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QBackingstoreTextureInfo, Q_RELOCATABLE_TYPE);

class QPlatformTextureListPrivate : public QObjectPrivate
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/painting/qtransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class Q_GUI_EXPORT QTransform
mutable uint m_type : 5;
mutable uint m_dirty : 5;
};
Q_DECLARE_TYPEINFO(QTransform, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTransform, Q_RELOCATABLE_TYPE);

Q_GUI_EXPORT Q_DECL_CONST_FUNCTION size_t qHash(const QTransform &key, size_t seed = 0) noexcept;

Expand Down
8 changes: 4 additions & 4 deletions src/gui/platform/unix/dbusmenu/qdbusmenutypes_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class QDBusMenuItem
int m_id;
QVariantMap m_properties;
};
Q_DECLARE_TYPEINFO(QDBusMenuItem, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QDBusMenuItem, Q_RELOCATABLE_TYPE);

const QDBusArgument &operator<<(QDBusArgument &arg, const QDBusMenuItem &item);
const QDBusArgument &operator>>(const QDBusArgument &arg, QDBusMenuItem &item);
Expand All @@ -94,7 +94,7 @@ class QDBusMenuItemKeys
int id;
QStringList properties;
};
Q_DECLARE_TYPEINFO(QDBusMenuItemKeys, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QDBusMenuItemKeys, Q_RELOCATABLE_TYPE);

const QDBusArgument &operator<<(QDBusArgument &arg, const QDBusMenuItemKeys &keys);
const QDBusArgument &operator>>(const QDBusArgument &arg, QDBusMenuItemKeys &keys);
Expand All @@ -112,7 +112,7 @@ class QDBusMenuLayoutItem
QVariantMap m_properties;
QList<QDBusMenuLayoutItem> m_children;
};
Q_DECLARE_TYPEINFO(QDBusMenuLayoutItem, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QDBusMenuLayoutItem, Q_RELOCATABLE_TYPE);

const QDBusArgument &operator<<(QDBusArgument &arg, const QDBusMenuLayoutItem &);
const QDBusArgument &operator>>(const QDBusArgument &arg, QDBusMenuLayoutItem &item);
Expand All @@ -127,7 +127,7 @@ class QDBusMenuEvent
QDBusVariant m_data;
uint m_timestamp;
};
Q_DECLARE_TYPEINFO(QDBusMenuEvent, Q_MOVABLE_TYPE); // QDBusVariant is movable, even though it cannot
Q_DECLARE_TYPEINFO(QDBusMenuEvent, Q_RELOCATABLE_TYPE); // QDBusVariant is movable, even though it cannot
// be marked as such until Qt 6.

const QDBusArgument &operator<<(QDBusArgument &arg, const QDBusMenuEvent &ev);
Expand Down
4 changes: 2 additions & 2 deletions src/gui/platform/unix/dbustray/qdbustraytypes_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct QXdgDBusImageStruct
int height;
QByteArray data;
};
Q_DECLARE_TYPEINFO(QXdgDBusImageStruct, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QXdgDBusImageStruct, Q_RELOCATABLE_TYPE);

using QXdgDBusImageVector = QList<QXdgDBusImageStruct>;

Expand All @@ -89,7 +89,7 @@ struct QXdgDBusToolTipStruct
QString title;
QString subTitle;
};
Q_DECLARE_TYPEINFO(QXdgDBusToolTipStruct, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QXdgDBusToolTipStruct, Q_RELOCATABLE_TYPE);

const QDBusArgument &operator<<(QDBusArgument &argument, const QXdgDBusImageStruct &icon);
const QDBusArgument &operator>>(const QDBusArgument &argument, QXdgDBusImageStruct &icon);
Expand Down
30 changes: 15 additions & 15 deletions src/gui/rhi/qrhi_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Q_GUI_EXPORT QRhiDepthStencilClearValue
quint32 m_s = 0;
};

Q_DECLARE_TYPEINFO(QRhiDepthStencilClearValue, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiDepthStencilClearValue, Q_RELOCATABLE_TYPE);

Q_GUI_EXPORT bool operator==(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b) noexcept;
Q_GUI_EXPORT bool operator!=(const QRhiDepthStencilClearValue &a, const QRhiDepthStencilClearValue &b) noexcept;
Expand Down Expand Up @@ -122,7 +122,7 @@ class Q_GUI_EXPORT QRhiViewport
float m_maxDepth = 1.0f;
};

Q_DECLARE_TYPEINFO(QRhiViewport, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiViewport, Q_RELOCATABLE_TYPE);

Q_GUI_EXPORT bool operator==(const QRhiViewport &a, const QRhiViewport &b) noexcept;
Q_GUI_EXPORT bool operator!=(const QRhiViewport &a, const QRhiViewport &b) noexcept;
Expand All @@ -146,7 +146,7 @@ class Q_GUI_EXPORT QRhiScissor
std::array<int, 4> m_rect { { 0, 0, 0, 0 } };
};

Q_DECLARE_TYPEINFO(QRhiScissor, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiScissor, Q_RELOCATABLE_TYPE);

Q_GUI_EXPORT bool operator==(const QRhiScissor &a, const QRhiScissor &b) noexcept;
Q_GUI_EXPORT bool operator!=(const QRhiScissor &a, const QRhiScissor &b) noexcept;
Expand Down Expand Up @@ -181,7 +181,7 @@ class Q_GUI_EXPORT QRhiVertexInputBinding
int m_instanceStepRate = 1;
};

Q_DECLARE_TYPEINFO(QRhiVertexInputBinding, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiVertexInputBinding, Q_RELOCATABLE_TYPE);

Q_GUI_EXPORT bool operator==(const QRhiVertexInputBinding &a, const QRhiVertexInputBinding &b) noexcept;
Q_GUI_EXPORT bool operator!=(const QRhiVertexInputBinding &a, const QRhiVertexInputBinding &b) noexcept;
Expand Down Expand Up @@ -237,7 +237,7 @@ class Q_GUI_EXPORT QRhiVertexInputAttribute
int m_matrixSlice = -1;
};

Q_DECLARE_TYPEINFO(QRhiVertexInputAttribute, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiVertexInputAttribute, Q_RELOCATABLE_TYPE);

Q_GUI_EXPORT bool operator==(const QRhiVertexInputAttribute &a, const QRhiVertexInputAttribute &b) noexcept;
Q_GUI_EXPORT bool operator!=(const QRhiVertexInputAttribute &a, const QRhiVertexInputAttribute &b) noexcept;
Expand Down Expand Up @@ -281,7 +281,7 @@ class Q_GUI_EXPORT QRhiVertexInputLayout
friend Q_GUI_EXPORT QDebug operator<<(QDebug, const QRhiVertexInputLayout &);
};

Q_DECLARE_TYPEINFO(QRhiVertexInputLayout, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiVertexInputLayout, Q_RELOCATABLE_TYPE);

Q_GUI_EXPORT bool operator==(const QRhiVertexInputLayout &a, const QRhiVertexInputLayout &b) noexcept;
Q_GUI_EXPORT bool operator!=(const QRhiVertexInputLayout &a, const QRhiVertexInputLayout &b) noexcept;
Expand Down Expand Up @@ -318,7 +318,7 @@ class Q_GUI_EXPORT QRhiShaderStage
QShader::Variant m_shaderVariant = QShader::StandardShader;
};

Q_DECLARE_TYPEINFO(QRhiShaderStage, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiShaderStage, Q_RELOCATABLE_TYPE);

Q_GUI_EXPORT bool operator==(const QRhiShaderStage &a, const QRhiShaderStage &b) noexcept;
Q_GUI_EXPORT bool operator!=(const QRhiShaderStage &a, const QRhiShaderStage &b) noexcept;
Expand Down Expand Up @@ -466,7 +466,7 @@ class Q_GUI_EXPORT QRhiColorAttachment
int m_resolveLevel = 0;
};

Q_DECLARE_TYPEINFO(QRhiColorAttachment, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiColorAttachment, Q_RELOCATABLE_TYPE);

class Q_GUI_EXPORT QRhiTextureRenderTargetDescription
{
Expand Down Expand Up @@ -499,7 +499,7 @@ class Q_GUI_EXPORT QRhiTextureRenderTargetDescription
QRhiTexture *m_depthTexture = nullptr;
};

Q_DECLARE_TYPEINFO(QRhiTextureRenderTargetDescription, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiTextureRenderTargetDescription, Q_RELOCATABLE_TYPE);

class Q_GUI_EXPORT QRhiTextureSubresourceUploadDescription
{
Expand Down Expand Up @@ -531,7 +531,7 @@ class Q_GUI_EXPORT QRhiTextureSubresourceUploadDescription
QPoint m_sourceTopLeft;
};

Q_DECLARE_TYPEINFO(QRhiTextureSubresourceUploadDescription, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiTextureSubresourceUploadDescription, Q_RELOCATABLE_TYPE);

class Q_GUI_EXPORT QRhiTextureUploadEntry
{
Expand All @@ -554,7 +554,7 @@ class Q_GUI_EXPORT QRhiTextureUploadEntry
QRhiTextureSubresourceUploadDescription m_desc;
};

Q_DECLARE_TYPEINFO(QRhiTextureUploadEntry, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiTextureUploadEntry, Q_RELOCATABLE_TYPE);

class Q_GUI_EXPORT QRhiTextureUploadDescription
{
Expand All @@ -577,7 +577,7 @@ class Q_GUI_EXPORT QRhiTextureUploadDescription
QVarLengthArray<QRhiTextureUploadEntry, 16> m_entries;
};

Q_DECLARE_TYPEINFO(QRhiTextureUploadDescription, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiTextureUploadDescription, Q_RELOCATABLE_TYPE);

class Q_GUI_EXPORT QRhiTextureCopyDescription
{
Expand Down Expand Up @@ -615,7 +615,7 @@ class Q_GUI_EXPORT QRhiTextureCopyDescription
QPoint m_destinationTopLeft;
};

Q_DECLARE_TYPEINFO(QRhiTextureCopyDescription, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiTextureCopyDescription, Q_RELOCATABLE_TYPE);

class Q_GUI_EXPORT QRhiReadbackDescription
{
Expand All @@ -638,7 +638,7 @@ class Q_GUI_EXPORT QRhiReadbackDescription
int m_level = 0;
};

Q_DECLARE_TYPEINFO(QRhiReadbackDescription, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiReadbackDescription, Q_RELOCATABLE_TYPE);

struct Q_GUI_EXPORT QRhiNativeHandles
{
Expand Down Expand Up @@ -1249,7 +1249,7 @@ class Q_GUI_EXPORT QRhiGraphicsPipeline : public QRhiResource

Q_DECLARE_OPERATORS_FOR_FLAGS(QRhiGraphicsPipeline::Flags)
Q_DECLARE_OPERATORS_FOR_FLAGS(QRhiGraphicsPipeline::ColorMask)
Q_DECLARE_TYPEINFO(QRhiGraphicsPipeline::TargetBlend, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiGraphicsPipeline::TargetBlend, Q_RELOCATABLE_TYPE);

class Q_GUI_EXPORT QRhiSwapChain : public QRhiResource
{
Expand Down
10 changes: 5 additions & 5 deletions src/gui/rhi/qrhi_p_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ class QRhiBufferData
QRhiBufferDataPrivate *d = nullptr;
};

Q_DECLARE_TYPEINFO(QRhiBufferData, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiBufferData, Q_RELOCATABLE_TYPE);

class QRhiResourceUpdateBatchPrivate
{
Expand Down Expand Up @@ -498,8 +498,8 @@ class QRhiResourceUpdateBatchPrivate
static QRhiResourceUpdateBatchPrivate *get(QRhiResourceUpdateBatch *b) { return b->d; }
};

Q_DECLARE_TYPEINFO(QRhiResourceUpdateBatchPrivate::BufferOp, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiResourceUpdateBatchPrivate::TextureOp, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiResourceUpdateBatchPrivate::BufferOp, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiResourceUpdateBatchPrivate::TextureOp, Q_RELOCATABLE_TYPE);

template<typename T>
struct QRhiBatchedBindings
Expand Down Expand Up @@ -652,8 +652,8 @@ class QRhiPassResourceTracker
QHash<QRhiTexture *, Texture> m_textures;
};

Q_DECLARE_TYPEINFO(QRhiPassResourceTracker::Buffer, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiPassResourceTracker::Texture, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiPassResourceTracker::Buffer, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiPassResourceTracker::Texture, Q_RELOCATABLE_TYPE);

template<typename T, int GROW = 1024>
class QRhiBackendCommandList
Expand Down
6 changes: 3 additions & 3 deletions src/gui/rhi/qrhid3d11_p_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ struct QD3D11ShaderResourceBindings : public QRhiShaderResourceBindings
friend class QRhiD3D11;
};

Q_DECLARE_TYPEINFO(QD3D11ShaderResourceBindings::BoundResourceData, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QD3D11ShaderResourceBindings::BoundResourceData, Q_RELOCATABLE_TYPE);

struct QD3D11GraphicsPipeline : public QRhiGraphicsPipeline
{
Expand Down Expand Up @@ -762,8 +762,8 @@ class QRhiD3D11 : public QRhiImplementation
} deviceCurse;
};

Q_DECLARE_TYPEINFO(QRhiD3D11::TextureReadback, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiD3D11::BufferReadback, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiD3D11::TextureReadback, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiD3D11::BufferReadback, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
6 changes: 3 additions & 3 deletions src/gui/rhi/qrhigles2_p_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,15 @@ struct QGles2UniformDescription
int arrayDim;
};

Q_DECLARE_TYPEINFO(QGles2UniformDescription, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QGles2UniformDescription, Q_RELOCATABLE_TYPE);

struct QGles2SamplerDescription
{
int glslLocation;
int binding;
};

Q_DECLARE_TYPEINFO(QGles2SamplerDescription, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QGles2SamplerDescription, Q_RELOCATABLE_TYPE);

using QGles2UniformDescriptionVector = QVarLengthArray<QGles2UniformDescription, 8>;
using QGles2SamplerDescriptionVector = QVarLengthArray<QGles2SamplerDescription, 4>;
Expand Down Expand Up @@ -998,7 +998,7 @@ class QRhiGles2 : public QRhiImplementation
QHash<QRhiShaderStage, uint> m_shaderCache;
};

Q_DECLARE_TYPEINFO(QRhiGles2::DeferredReleaseEntry, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiGles2::DeferredReleaseEntry, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
4 changes: 2 additions & 2 deletions src/gui/rhi/qrhimetal.mm
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ void destroy() {
QHash<QRhiShaderStage, QMetalShader> shaderCache;
};

Q_DECLARE_TYPEINFO(QRhiMetalData::DeferredReleaseEntry, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiMetalData::TextureReadback, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiMetalData::DeferredReleaseEntry, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiMetalData::TextureReadback, Q_RELOCATABLE_TYPE);

struct QMetalBufferData
{
Expand Down
4 changes: 2 additions & 2 deletions src/gui/rhi/qrhiprofiler_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ class Q_GUI_EXPORT QRhiProfiler
friend class QRhiProfilerPrivate;
};

Q_DECLARE_TYPEINFO(QRhiProfiler::CpuTime, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiProfiler::GpuTime, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiProfiler::CpuTime, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiProfiler::GpuTime, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/gui/rhi/qrhiprofiler_p_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class QRhiProfilerPrivate
QHash<QRhiSwapChain *, Sc> swapchains;
};

Q_DECLARE_TYPEINFO(QRhiProfilerPrivate::Sc, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiProfilerPrivate::Sc, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
12 changes: 6 additions & 6 deletions src/gui/rhi/qrhivulkan_p_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct QVkBuffer : public QRhiBuffer
friend class QRhiVulkan;
};

Q_DECLARE_TYPEINFO(QVkBuffer::DynamicUpdate, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QVkBuffer::DynamicUpdate, Q_RELOCATABLE_TYPE);

struct QVkTexture;

Expand Down Expand Up @@ -294,7 +294,7 @@ struct QVkShaderResourceBindings : public QRhiShaderResourceBindings
friend class QRhiVulkan;
};

Q_DECLARE_TYPEINFO(QVkShaderResourceBindings::BoundResourceData, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QVkShaderResourceBindings::BoundResourceData, Q_RELOCATABLE_TYPE);

struct QVkGraphicsPipeline : public QRhiGraphicsPipeline
{
Expand Down Expand Up @@ -991,10 +991,10 @@ class QRhiVulkan : public QRhiImplementation
QList<DeferredReleaseEntry> releaseQueue;
};

Q_DECLARE_TYPEINFO(QRhiVulkan::DescriptorPoolData, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiVulkan::DeferredReleaseEntry, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiVulkan::TextureReadback, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiVulkan::BufferReadback, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiVulkan::DescriptorPoolData, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiVulkan::DeferredReleaseEntry, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiVulkan::TextureReadback, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QRhiVulkan::BufferReadback, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
6 changes: 3 additions & 3 deletions src/gui/rhi/qshader_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Q_GUI_EXPORT QShaderVersion
};

Q_DECLARE_OPERATORS_FOR_FLAGS(QShaderVersion::Flags)
Q_DECLARE_TYPEINFO(QShaderVersion, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderVersion, Q_RELOCATABLE_TYPE);

class QShaderCode;
Q_GUI_EXPORT size_t qHash(const QShaderCode &, size_t = 0) noexcept;
Expand All @@ -103,7 +103,7 @@ class Q_GUI_EXPORT QShaderCode
QByteArray m_entryPoint;
};

Q_DECLARE_TYPEINFO(QShaderCode, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderCode, Q_RELOCATABLE_TYPE);

class Q_GUI_EXPORT QShader
{
Expand Down Expand Up @@ -192,7 +192,7 @@ class Q_GUI_EXPORT QShaderKey
QShader::Variant m_sourceVariant = QShader::StandardShader;
};

Q_DECLARE_TYPEINFO(QShaderKey, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderKey, Q_RELOCATABLE_TYPE);

Q_GUI_EXPORT bool operator==(const QShader &lhs, const QShader &rhs) noexcept;
Q_GUI_EXPORT size_t qHash(const QShader &s, size_t seed = 0) noexcept;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/text/freetype/qfontengine_ft_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class Q_GUI_EXPORT QFontEngineFT : public QFontEngine
QFixed scalableBitmapScaleFactor;
};

Q_DECLARE_TYPEINFO(QFontEngineFT::QGlyphSet, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QFontEngineFT::QGlyphSet, Q_RELOCATABLE_TYPE);


inline size_t qHash(const QFontEngineFT::GlyphAndSubPixelPosition &g)
Expand Down
32 changes: 16 additions & 16 deletions src/gui/text/qcssparser_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ struct Value

Q_GUI_EXPORT QString toString() const;
};
QT_CSS_DECLARE_TYPEINFO(Value, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(Value, Q_RELOCATABLE_TYPE)

struct ColorData {
ColorData() : role(QPalette::NoRole), type(Invalid) {}
Expand All @@ -401,7 +401,7 @@ struct ColorData {
QPalette::ColorRole role;
enum { Invalid, Color, Role} type;
};
QT_CSS_DECLARE_TYPEINFO(ColorData, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(ColorData, Q_RELOCATABLE_TYPE)

struct BrushData {
BrushData() : role(QPalette::NoRole), type(Invalid) {}
Expand All @@ -411,15 +411,15 @@ struct BrushData {
QPalette::ColorRole role;
enum { Invalid, Brush, Role, DependsOnThePalette } type;
};
QT_CSS_DECLARE_TYPEINFO(BrushData, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(BrushData, Q_RELOCATABLE_TYPE)

struct BackgroundData {
BrushData brush;
QString image;
Repeat repeat;
Qt::Alignment alignment;
};
QT_CSS_DECLARE_TYPEINFO(BackgroundData, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(BackgroundData, Q_RELOCATABLE_TYPE)

struct LengthData {
qreal number;
Expand All @@ -432,7 +432,7 @@ struct BorderData {
BorderStyle style;
BrushData color;
};
QT_CSS_DECLARE_TYPEINFO(BorderData, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(BorderData, Q_RELOCATABLE_TYPE)

// 1. StyleRule - x:hover, y:clicked > z:checked { prop1: value1; prop2: value2; }
// 2. QList<Selector> - x:hover, y:clicked z:checked
Expand Down Expand Up @@ -483,7 +483,7 @@ struct Q_GUI_EXPORT Declaration
void borderImageValue(QString *image, int *cuts, TileMode *h, TileMode *v) const;
bool borderCollapseValue() const;
};
QT_CSS_DECLARE_TYPEINFO(Declaration, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(Declaration, Q_RELOCATABLE_TYPE)

const quint64 PseudoClass_Unknown = Q_UINT64_C(0x0000000000000000);
const quint64 PseudoClass_Enabled = Q_UINT64_C(0x0000000000000001);
Expand Down Expand Up @@ -543,7 +543,7 @@ struct Pseudo
QString function;
bool negated;
};
QT_CSS_DECLARE_TYPEINFO(Pseudo, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(Pseudo, Q_RELOCATABLE_TYPE)

struct AttributeSelector
{
Expand All @@ -562,7 +562,7 @@ struct AttributeSelector
QString value;
ValueMatchType valueMatchCriterium;
};
QT_CSS_DECLARE_TYPEINFO(AttributeSelector, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(AttributeSelector, Q_RELOCATABLE_TYPE)

struct BasicSelector
{
Expand All @@ -584,7 +584,7 @@ struct BasicSelector

Relation relationToNext;
};
QT_CSS_DECLARE_TYPEINFO(BasicSelector, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(BasicSelector, Q_RELOCATABLE_TYPE)

struct Q_GUI_EXPORT Selector
{
Expand All @@ -593,7 +593,7 @@ struct Q_GUI_EXPORT Selector
quint64 pseudoClass(quint64 *negated = nullptr) const;
QString pseudoElement() const;
};
QT_CSS_DECLARE_TYPEINFO(Selector, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(Selector, Q_RELOCATABLE_TYPE)

struct StyleRule
{
Expand All @@ -602,28 +602,28 @@ struct StyleRule
QList<Declaration> declarations;
int order;
};
QT_CSS_DECLARE_TYPEINFO(StyleRule, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(StyleRule, Q_RELOCATABLE_TYPE)

struct MediaRule
{
QStringList media;
QList<StyleRule> styleRules;
};
QT_CSS_DECLARE_TYPEINFO(MediaRule, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(MediaRule, Q_RELOCATABLE_TYPE)

struct PageRule
{
QString selector;
QList<Declaration> declarations;
};
QT_CSS_DECLARE_TYPEINFO(PageRule, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(PageRule, Q_RELOCATABLE_TYPE)

struct ImportRule
{
QString href;
QStringList media;
};
QT_CSS_DECLARE_TYPEINFO(ImportRule, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(ImportRule, Q_RELOCATABLE_TYPE)

enum StyleSheetOrigin {
StyleSheetOrigin_Unspecified,
Expand All @@ -647,7 +647,7 @@ struct StyleSheet

Q_GUI_EXPORT void buildIndexes(Qt::CaseSensitivity nameCaseSensitivity = Qt::CaseSensitive);
};
QT_CSS_DECLARE_TYPEINFO(StyleSheet, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(StyleSheet, Q_RELOCATABLE_TYPE)


class Q_GUI_EXPORT StyleSelector
Expand Down Expand Up @@ -745,7 +745,7 @@ struct Symbol
int start, len;
Q_GUI_EXPORT QString lexem() const;
};
QT_CSS_DECLARE_TYPEINFO(Symbol, Q_MOVABLE_TYPE)
QT_CSS_DECLARE_TYPEINFO(Symbol, Q_RELOCATABLE_TYPE)

class Q_GUI_EXPORT Scanner
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/text/qfontdatabase_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class Q_GUI_EXPORT QFontDatabasePrivate

void invalidate();
};
Q_DECLARE_TYPEINFO(QFontDatabasePrivate::ApplicationFont, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QFontDatabasePrivate::ApplicationFont, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
8 changes: 4 additions & 4 deletions src/gui/text/qfontsubset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ struct QTtfTable {
Tag tag;
QByteArray data;
};
Q_DECLARE_TYPEINFO(QTtfTable, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTtfTable, Q_RELOCATABLE_TYPE);


struct qttf_head_table {
Expand Down Expand Up @@ -391,7 +391,7 @@ struct qttf_name_table {
QString subfamily;
QString postscript_name;
};
Q_DECLARE_TYPEINFO(qttf_name_table, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(qttf_name_table, Q_RELOCATABLE_TYPE);


static QTtfTable generateHead(const qttf_head_table &head);
Expand Down Expand Up @@ -419,7 +419,7 @@ struct QTtfGlyph {
quint16 numPoints;
QByteArray data;
};
Q_DECLARE_TYPEINFO(QTtfGlyph, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTtfGlyph, Q_RELOCATABLE_TYPE);

static QTtfGlyph generateGlyph(int index, const QPainterPath &path, qreal advance, qreal lsb, qreal ppem);
// generates glyf, loca and hmtx
Expand Down Expand Up @@ -619,7 +619,7 @@ struct QTtfNameRecord {
quint16 nameId;
QString value;
};
Q_DECLARE_TYPEINFO(QTtfNameRecord, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTtfNameRecord, Q_RELOCATABLE_TYPE);

static QTtfTable generateName(const QList<QTtfNameRecord> &name);

Expand Down
2 changes: 1 addition & 1 deletion src/gui/text/qstatictext_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class Q_GUI_EXPORT QStaticTextItem
// ================
// 43 bytes per item
};
Q_DECLARE_TYPEINFO(QStaticTextItem, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QStaticTextItem, Q_RELOCATABLE_TYPE);

class QStaticText;
class Q_AUTOTEST_EXPORT QStaticTextPrivate
Expand Down
4 changes: 2 additions & 2 deletions src/gui/text/qtextdocumentfragment_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ class QTextHtmlImporter : public QTextHtmlParser
int currentNodeIdx;
const QTextHtmlParserNode *currentNode;
};
Q_DECLARE_TYPEINFO(QTextHtmlImporter::List, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextHtmlImporter::List, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextHtmlImporter::TableCellIterator, Q_PRIMITIVE_TYPE);
Q_DECLARE_TYPEINFO(QTextHtmlImporter::Table, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextHtmlImporter::Table, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextHtmlImporter::RowColSpanInfo, Q_PRIMITIVE_TYPE);

QT_END_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion src/gui/text/qtextengine_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ class Q_GUI_EXPORT QStackTextEngine : public QTextEngine {
LayoutData _layoutData;
void *_memory[MemSize];
};
Q_DECLARE_TYPEINFO(QTextEngine::ItemDecoration, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextEngine::ItemDecoration, Q_RELOCATABLE_TYPE);

struct QTextLineItemIterator
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/text/qtextformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ struct Property
{ return key == other.key && value == other.value; }
};
}
Q_DECLARE_TYPEINFO(Property, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Property, Q_RELOCATABLE_TYPE);

class QTextFormatPrivate : public QSharedData
{
Expand Down
4 changes: 2 additions & 2 deletions src/gui/text/qtexthtmlparser_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ struct QTextHtmlParserNode {

friend class QTextHtmlParser;
};
Q_DECLARE_TYPEINFO(QTextHtmlParserNode, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextHtmlParserNode, Q_RELOCATABLE_TYPE);


class QTextHtmlParser
Expand Down Expand Up @@ -357,7 +357,7 @@ class QTextHtmlParser
const QTextDocument *resourceProvider;
};
#if QT_CONFIG(cssparser)
Q_DECLARE_TYPEINFO(QTextHtmlParser::ExternalStyleSheet, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextHtmlParser::ExternalStyleSheet, Q_RELOCATABLE_TYPE);
#endif

QT_END_NAMESPACE
Expand Down
8 changes: 4 additions & 4 deletions src/gui/text/qtextobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class Q_GUI_EXPORT QTextFrame : public QTextObject
Q_DECLARE_PRIVATE(QTextFrame)
Q_DISABLE_COPY(QTextFrame)
};
Q_DECLARE_TYPEINFO(QTextFrame::iterator, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextFrame::iterator, Q_RELOCATABLE_TYPE);

inline void QTextFrame::setFrameFormat(const QTextFrameFormat &aformat)
{ QTextObject::setFormat(aformat); }
Expand Down Expand Up @@ -284,8 +284,8 @@ class Q_GUI_EXPORT QTextBlock
friend class QTextLayout;
};

Q_DECLARE_TYPEINFO(QTextBlock, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextBlock::iterator, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextBlock, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextBlock::iterator, Q_RELOCATABLE_TYPE);


class Q_GUI_EXPORT QTextFragment
Expand Down Expand Up @@ -320,7 +320,7 @@ class Q_GUI_EXPORT QTextFragment
int ne;
};

Q_DECLARE_TYPEINFO(QTextFragment, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextFragment, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/gui/text/qzip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ struct FileHeader
QByteArray extra_field;
QByteArray file_comment;
};
Q_DECLARE_TYPEINFO(FileHeader, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(FileHeader, Q_RELOCATABLE_TYPE);

class QZipPrivate
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/text/qzipreader_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class Q_GUI_EXPORT QZipReader
QZipReaderPrivate *d;
Q_DISABLE_COPY_MOVE(QZipReader)
};
Q_DECLARE_TYPEINFO(QZipReader::FileInfo, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QZipReader::FileInfo, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QZipReader::Status, Q_PRIMITIVE_TYPE);

QT_END_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion src/gui/util/qgridlayoutengine_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class Q_GUI_EXPORT QGridLayoutBox
}
}
};
Q_DECLARE_TYPEINFO(QGridLayoutBox, Q_MOVABLE_TYPE); // cannot be Q_PRIMITIVE_TYPE, as q_maximumSize, say, is != 0
Q_DECLARE_TYPEINFO(QGridLayoutBox, Q_RELOCATABLE_TYPE); // cannot be Q_PRIMITIVE_TYPE, as q_maximumSize, say, is != 0

bool operator==(const QGridLayoutBox &box1, const QGridLayoutBox &box2);
inline bool operator!=(const QGridLayoutBox &box1, const QGridLayoutBox &box2)
Expand Down
2 changes: 1 addition & 1 deletion src/gui/util/qshaderformat_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ inline bool operator!=(const QShaderFormat &lhs, const QShaderFormat &rhs) noexc
return !(lhs == rhs);
}

Q_DECLARE_TYPEINFO(QShaderFormat, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderFormat, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/gui/util/qshadergenerator_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class QShaderGenerator
QShaderFormat format;
};

Q_DECLARE_TYPEINFO(QShaderGenerator, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderGenerator, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
6 changes: 3 additions & 3 deletions src/gui/util/qshadergraph_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ inline bool operator!=(const QShaderGraph::Statement &lhs, const QShaderGraph::S
return !(lhs == rhs);
}

Q_DECLARE_TYPEINFO(QShaderGraph, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderGraph::Edge, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderGraph::Statement, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderGraph, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderGraph::Edge, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderGraph::Statement, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/gui/util/qshadergraphloader_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class QShaderGraphLoader
QShaderGraph m_graph;
};

Q_DECLARE_TYPEINFO(QShaderGraphLoader, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderGraphLoader, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
4 changes: 2 additions & 2 deletions src/gui/util/qshadernode_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ inline bool operator!=(const QShaderNode::Rule &lhs, const QShaderNode::Rule &rh
return !(lhs == rhs);
}

Q_DECLARE_TYPEINFO(QShaderNode, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderNode::Rule, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderNode, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderNode::Rule, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/gui/util/qshadernodeport_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ inline bool operator!=(const QShaderNodePort &lhs, const QShaderNodePort &rhs) n
return !(lhs == rhs);
}

Q_DECLARE_TYPEINFO(QShaderNodePort, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderNodePort, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/gui/util/qshadernodesloader_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class QShaderNodesLoader
QHash<QString, QShaderNode> m_nodes;
};

Q_DECLARE_TYPEINFO(QShaderNodesLoader, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QShaderNodesLoader, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/gui/util/qtexturefiledata_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class Q_GUI_EXPORT QTextureFileData
QSharedDataPointer<QTextureFileDataPrivate> d;
};

Q_DECLARE_TYPEINFO(QTextureFileData, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextureFileData, Q_RELOCATABLE_TYPE);

Q_GUI_EXPORT QDebug operator<<(QDebug dbg, const QTextureFileData &d);

Expand Down
4 changes: 2 additions & 2 deletions src/gui/vulkan/qvulkaninstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ struct QVulkanLayer
QVersionNumber specVersion;
QByteArray description;
};
Q_DECLARE_TYPEINFO(QVulkanLayer, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QVulkanLayer, Q_RELOCATABLE_TYPE);

inline bool operator==(const QVulkanLayer &lhs, const QVulkanLayer &rhs) noexcept
{
Expand All @@ -127,7 +127,7 @@ struct QVulkanExtension
QByteArray name;
uint32_t version;
};
Q_DECLARE_TYPEINFO(QVulkanExtension, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QVulkanExtension, Q_RELOCATABLE_TYPE);

inline bool operator==(const QVulkanExtension &lhs, const QVulkanExtension &rhs) noexcept
{
Expand Down
2 changes: 1 addition & 1 deletion src/network/access/qnetworkaccessauthenticationmanager_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class QNetworkAuthenticationCredential
return domain.isNull() && user.isNull() && password.isNull();
}
};
Q_DECLARE_TYPEINFO(QNetworkAuthenticationCredential, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QNetworkAuthenticationCredential, Q_RELOCATABLE_TYPE);
inline bool operator<(const QNetworkAuthenticationCredential &t1, const QString &t2)
{ return t1.domain < t2; }
inline bool operator<(const QString &t1, const QNetworkAuthenticationCredential &t2)
Expand Down
2 changes: 1 addition & 1 deletion src/network/access/qnetworkrequest_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class QNetworkHeadersPrivate
void parseAndSetHeader(const QByteArray &key, const QByteArray &value);
};

Q_DECLARE_TYPEINFO(QNetworkHeadersPrivate::RawHeaderPair, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QNetworkHeadersPrivate::RawHeaderPair, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/network/ssl/qasn1element_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class Q_AUTOTEST_EXPORT QAsn1Element
quint8 mType;
QByteArray mValue;
};
Q_DECLARE_TYPEINFO(QAsn1Element, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QAsn1Element, Q_RELOCATABLE_TYPE);

inline bool operator==(const QAsn1Element &e1, const QAsn1Element &e2)
{ return e1.mType == e2.mType && e1.mValue == e2.mValue; }
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/generic/tuiotouch/qoscbundle_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class QOscBundle
QList<QOscBundle> m_bundles;
QList<QOscMessage> m_messages;
};
Q_DECLARE_TYPEINFO(QOscBundle, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QOscBundle, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/generic/tuiotouch/qoscmessage_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class QOscMessage
QByteArray m_addressPattern;
QVariantList m_arguments;
};
Q_DECLARE_TYPEINFO(QOscMessage, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QOscMessage, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/generic/tuiotouch/qtuiocursor_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class QTuioCursor
float m_acceleration;
QEventPoint::State m_state;
};
Q_DECLARE_TYPEINFO(QTuioCursor, Q_MOVABLE_TYPE); // Q_PRIMITIVE_TYPE: not possible, m_state is = 1, not 0.
Q_DECLARE_TYPEINFO(QTuioCursor, Q_RELOCATABLE_TYPE); // Q_PRIMITIVE_TYPE: not possible, m_state is = 1, not 0.

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/generic/tuiotouch/qtuiotoken_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class QTuioToken
float m_angularAcceleration;
QEventPoint::State m_state;
};
Q_DECLARE_TYPEINFO(QTuioToken, Q_MOVABLE_TYPE); // Q_PRIMITIVE_TYPE: not possible: m_id, m_classId == -1
Q_DECLARE_TYPEINFO(QTuioToken, Q_RELOCATABLE_TYPE); // Q_PRIMITIVE_TYPE: not possible: m_id, m_classId == -1

QT_END_NAMESPACE

Expand Down
8 changes: 4 additions & 4 deletions src/plugins/platforminputcontexts/ibus/qibustypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class QIBusAttribute : private QIBusSerializable
quint32 start;
quint32 end;
};
Q_DECLARE_TYPEINFO(QIBusAttribute, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QIBusAttribute, Q_RELOCATABLE_TYPE);

class QIBusAttributeList : private QIBusSerializable
{
Expand All @@ -106,7 +106,7 @@ class QIBusAttributeList : private QIBusSerializable

QList<QIBusAttribute> attributes;
};
Q_DECLARE_TYPEINFO(QIBusAttributeList, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QIBusAttributeList, Q_RELOCATABLE_TYPE);

class QIBusText : private QIBusSerializable
{
Expand All @@ -119,7 +119,7 @@ class QIBusText : private QIBusSerializable
QString text;
QIBusAttributeList attributes;
};
Q_DECLARE_TYPEINFO(QIBusText, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QIBusText, Q_RELOCATABLE_TYPE);

class QIBusEngineDesc : private QIBusSerializable
{
Expand Down Expand Up @@ -147,7 +147,7 @@ class QIBusEngineDesc : private QIBusSerializable
QString textdomain;
QString iconpropkey;
};
Q_DECLARE_TYPEINFO(QIBusEngineDesc, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QIBusEngineDesc, Q_RELOCATABLE_TYPE);

inline QDBusArgument &operator<<(QDBusArgument &argument, const QIBusAttribute &attribute)
{ attribute.serializeTo(argument); return argument; }
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/xcb/qxcbconnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ class Q_XCB_EXPORT QXcbConnection : public QXcbBasicConnection
};
#if QT_CONFIG(tabletevent)
Q_DECLARE_TYPEINFO(QXcbConnection::TabletData::ValuatorClassInfo, Q_PRIMITIVE_TYPE);
Q_DECLARE_TYPEINFO(QXcbConnection::TabletData, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QXcbConnection::TabletData, Q_RELOCATABLE_TYPE);
#endif

class QXcbConnectionGrabber
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/xcb/qxcbdrag.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class QXcbDrag : public QXcbObject, public QBasicDrag, public QXcbWindowEventLis
int findTransactionByTime(xcb_timestamp_t timestamp);
xcb_window_t findRealWindow(const QPoint & pos, xcb_window_t w, int md, bool ignoreNonXdndAwareWindows);
};
Q_DECLARE_TYPEINFO(QXcbDrag::Transaction, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QXcbDrag::Transaction, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
4 changes: 2 additions & 2 deletions src/testlib/qbenchmark_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ struct QBenchmarkContext

QBenchmarkContext() = default;
};
Q_DECLARE_TYPEINFO(QBenchmarkContext, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QBenchmarkContext, Q_RELOCATABLE_TYPE);

class QBenchmarkResult
{
Expand Down Expand Up @@ -121,7 +121,7 @@ class QBenchmarkResult
return (value / iterations) < (other.value / other.iterations);
}
};
Q_DECLARE_TYPEINFO(QBenchmarkResult, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QBenchmarkResult, Q_RELOCATABLE_TYPE);

/*
The QBenchmarkGlobalData class stores global benchmark-related data.
Expand Down
20 changes: 10 additions & 10 deletions src/tools/moc/moc.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct Type
Token firstToken;
ReferenceType referenceType;
};
Q_DECLARE_TYPEINFO(Type, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Type, Q_RELOCATABLE_TYPE);

struct ClassDef;
struct EnumDef
Expand All @@ -72,7 +72,7 @@ struct EnumDef
EnumDef() : isEnumClass(false) {}
QJsonObject toJson(const ClassDef &cdef) const;
};
Q_DECLARE_TYPEINFO(EnumDef, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(EnumDef, Q_RELOCATABLE_TYPE);

struct ArgumentDef
{
Expand All @@ -84,7 +84,7 @@ struct ArgumentDef

QJsonObject toJson() const;
};
Q_DECLARE_TYPEINFO(ArgumentDef, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(ArgumentDef, Q_RELOCATABLE_TYPE);

struct FunctionDef
{
Expand Down Expand Up @@ -121,7 +121,7 @@ struct FunctionDef
QJsonObject toJson() const;
static void accessToJson(QJsonObject *obj, Access acs);
};
Q_DECLARE_TYPEINFO(FunctionDef, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(FunctionDef, Q_RELOCATABLE_TYPE);

struct PropertyDef
{
Expand All @@ -145,7 +145,7 @@ struct PropertyDef

QJsonObject toJson() const;
};
Q_DECLARE_TYPEINFO(PropertyDef, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(PropertyDef, Q_RELOCATABLE_TYPE);

struct PrivateQPropertyDef
{
Expand All @@ -155,14 +155,14 @@ struct PrivateQPropertyDef
QByteArray accessor;
QByteArray storage;
};
Q_DECLARE_TYPEINFO(PrivateQPropertyDef, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(PrivateQPropertyDef, Q_RELOCATABLE_TYPE);

struct ClassInfoDef
{
QByteArray name;
QByteArray value;
};
Q_DECLARE_TYPEINFO(ClassInfoDef, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(ClassInfoDef, Q_RELOCATABLE_TYPE);

struct BaseDef {
QByteArray classname;
Expand Down Expand Up @@ -208,14 +208,14 @@ struct ClassDef : BaseDef {

QJsonObject toJson() const;
};
Q_DECLARE_TYPEINFO(ClassDef, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(ClassDef::Interface, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(ClassDef, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(ClassDef::Interface, Q_RELOCATABLE_TYPE);

struct NamespaceDef : BaseDef {
bool hasQNamespace = false;
bool doGenerate = false;
};
Q_DECLARE_TYPEINFO(NamespaceDef, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(NamespaceDef, Q_RELOCATABLE_TYPE);

class Moc : public Parser
{
Expand Down
4 changes: 2 additions & 2 deletions src/tools/moc/symbols.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ struct Symbol

#endif
};
Q_DECLARE_TYPEINFO(Symbol, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Symbol, Q_RELOCATABLE_TYPE);

typedef QList<Symbol> Symbols;

Expand All @@ -128,7 +128,7 @@ struct SafeSymbols {
QSet<QByteArray> excludedSymbols;
int index;
};
Q_DECLARE_TYPEINFO(SafeSymbols, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(SafeSymbols, Q_RELOCATABLE_TYPE);

class SymbolStack : public QStack<SafeSymbols>
{
Expand Down
6 changes: 3 additions & 3 deletions src/tools/tracegen/provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ struct Provider

Provider parseProvider(const QString &filename);

Q_DECLARE_TYPEINFO(Tracepoint::Argument, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Tracepoint::Field, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Tracepoint, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Tracepoint::Argument, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(Tracepoint::Field, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(Tracepoint, Q_RELOCATABLE_TYPE);

#endif // PROVIDER_H
2 changes: 1 addition & 1 deletion src/tools/uic/cpp/cppwriteinitialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ struct WriteInitialization : public TreeWalker

} // namespace CPP

Q_DECLARE_TYPEINFO(CPP::WriteInitialization::Buddy, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(CPP::WriteInitialization::Buddy, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/widgets/dialogs/qsidebar_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private Q_SLOTS:
QList<WatchItem> watching;
QList<QUrl> invalidUrls;
};
Q_DECLARE_TYPEINFO(QUrlModel::WatchItem, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QUrlModel::WatchItem, Q_RELOCATABLE_TYPE);

class Q_AUTOTEST_EXPORT QSidebar : public QListView
{
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/dialogs/qwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class QWizardDefaultProperty
const char *changedSignal)
: className(className), property(property), changedSignal(changedSignal) {}
};
Q_DECLARE_TYPEINFO(QWizardDefaultProperty, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QWizardDefaultProperty, Q_RELOCATABLE_TYPE);

class QWizardField
{
Expand All @@ -199,7 +199,7 @@ class QWizardField
QByteArray changedSignal;
QVariant initialValue;
};
Q_DECLARE_TYPEINFO(QWizardField, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QWizardField, Q_RELOCATABLE_TYPE);

QWizardField::QWizardField(QWizardPage *page, const QString &spec, QObject *object,
const char *property, const char *changedSignal)
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/graphicsview/qgraphicsanchorlayout_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class GraphPath
} // namespace QtGraphicsAnchorLayout
using namespace QtGraphicsAnchorLayout;

Q_DECLARE_TYPEINFO(GraphPath, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(GraphPath, Q_RELOCATABLE_TYPE);

class QGraphicsAnchorLayoutPrivate;
/*!
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/graphicsview/qgraphicsitem_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ class Q_WIDGETS_EXPORT QGraphicsItemPrivate
int globalStackingOrder;
QGraphicsItem *q_ptr;
};
Q_DECLARE_TYPEINFO(QGraphicsItemPrivate::ExtraStruct, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QGraphicsItemPrivate::ExtraStruct, Q_RELOCATABLE_TYPE);

struct QGraphicsItemPrivate::TransformData
{
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/itemviews/qdatawidgetmapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class QDataWidgetMapperPrivate: public QObjectPrivate

std::vector<WidgetMapper> widgetMap;
};
Q_DECLARE_TYPEINFO(QDataWidgetMapperPrivate::WidgetMapper, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QDataWidgetMapperPrivate::WidgetMapper, Q_RELOCATABLE_TYPE);

int QDataWidgetMapperPrivate::findWidget(QWidget *w) const
{
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/itemviews/qheaderview_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ class QHeaderViewPrivate: public QAbstractItemViewPrivate

};
Q_DECLARE_TYPEINFO(QHeaderViewPrivate::SectionItem, Q_PRIMITIVE_TYPE);
Q_DECLARE_TYPEINFO(QHeaderViewPrivate::LayoutChangeItem, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QHeaderViewPrivate::LayoutChangeItem, Q_RELOCATABLE_TYPE);

QT_END_NAMESPACE

Expand Down
2 changes: 1 addition & 1 deletion src/widgets/itemviews/qtableview_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class Q_AUTOTEST_EXPORT QSpanCollection
bool cleanSpanSubIndex(SubIndex &subindex, int end, bool update = false);
};

Q_DECLARE_TYPEINFO ( QSpanCollection::Span, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO ( QSpanCollection::Span, Q_RELOCATABLE_TYPE);


class QTableViewPrivate : public QAbstractItemViewPrivate
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/itemviews/qtreeview_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct QTreeViewItem
int height : 16; // row height
};

Q_DECLARE_TYPEINFO(QTreeViewItem, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTreeViewItem, Q_RELOCATABLE_TYPE);

class Q_WIDGETS_EXPORT QTreeViewPrivate : public QAbstractItemViewPrivate
{
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/itemviews/qwidgetitemdata_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class QWidgetItemData
QVariant value;
inline bool operator==(const QWidgetItemData &other) const { return role == other.role && value == other.value; }
};
Q_DECLARE_TYPEINFO(QWidgetItemData, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QWidgetItemData, Q_RELOCATABLE_TYPE);

#ifndef QT_NO_DATASTREAM

Expand Down
2 changes: 1 addition & 1 deletion src/widgets/styles/qstylesheetstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ class QRenderRule
int clipset;
QPainterPath clipPath;
};
Q_DECLARE_TYPEINFO(QRenderRule, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QRenderRule, Q_RELOCATABLE_TYPE);

///////////////////////////////////////////////////////////////////////////////////////////
static const char knownStyleHints[][45] = {
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/widgets/qtextbrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class QTextBrowserPrivate : public QTextEditPrivate
emit q->highlighted(url);
}
};
Q_DECLARE_TYPEINFO(QTextBrowserPrivate::HistoryEntry, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QTextBrowserPrivate::HistoryEntry, Q_RELOCATABLE_TYPE);

QString QTextBrowserPrivate::findFile(const QUrl &name) const
{
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/widgets/qtoolbararealayout_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class QToolBarAreaLayoutLine

QList<QToolBarAreaLayoutItem> toolBarItems;
};
Q_DECLARE_TYPEINFO(QToolBarAreaLayoutLine, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QToolBarAreaLayoutLine, Q_RELOCATABLE_TYPE);

class QToolBarAreaLayoutInfo
{
Expand Down Expand Up @@ -157,7 +157,7 @@ class QToolBarAreaLayoutInfo
QInternal::DockPosition dockPos;
bool dirty;
};
Q_DECLARE_TYPEINFO(QToolBarAreaLayoutInfo, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QToolBarAreaLayoutInfo, Q_RELOCATABLE_TYPE);

class QToolBarAreaLayout
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ struct AnimState {
int state;
};
QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(AnimState, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(AnimState, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE

#define Running QAbstractAnimation::Running
Expand Down
6 changes: 3 additions & 3 deletions tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ Q_DECLARE_METATYPE(Whity<double>)

#if !defined(Q_CC_CLANG) && defined(Q_CC_GNU) && Q_CC_GNU < 501
QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(Whity<double>, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Whity<double>, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE
#endif

Expand Down Expand Up @@ -1019,7 +1019,7 @@ qsizetype qHash(const CustomMovable &, qsizetype seed = 0) { return seed; }

#if !defined(Q_CC_CLANG) && defined(Q_CC_GNU) && Q_CC_GNU < 501
QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(CustomMovable, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(CustomMovable, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE
#endif

Expand Down Expand Up @@ -1057,7 +1057,7 @@ class P { Q_DECL_UNUSED_MEMBER char _[4]; };

QT_BEGIN_NAMESPACE
#if defined(Q_CC_GNU) && Q_CC_GNU < 501
Q_DECLARE_TYPEINFO(M, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(M, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(P, Q_PRIMITIVE_TYPE);
#endif
QT_END_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3382,7 +3382,7 @@ struct MyShared : QSharedData {
};

QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(MyMovable, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(MyMovable, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE

Q_DECLARE_METATYPE(MyPrimitive)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct QLatin1StringContainer {
QLatin1String l1;
};
QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(QLatin1StringContainer, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QLatin1StringContainer, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QLatin1StringContainer)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ struct Match
QHash<QString, QString> namedCaptured;
};
QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(Match, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Match, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE

Q_DECLARE_METATYPE(Match)
Expand Down
2 changes: 1 addition & 1 deletion tests/auto/corelib/tools/collections/tst_collections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ struct Movable {

int Movable::count = 0;
QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(Movable, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Movable, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ QDebug &operator<<(QDebug &d, Movable m)
}

QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(Movable, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Movable, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE

struct Complex
Expand Down
2 changes: 1 addition & 1 deletion tests/auto/corelib/tools/qlist/tst_qlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ inline size_t qHash(const Movable &key, size_t seed = 0) { return qHash(key.i, s

QAtomicInt Movable::counter = 0;
QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(Movable, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Movable, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE
Q_DECLARE_METATYPE(Movable);

Expand Down
2 changes: 1 addition & 1 deletion tests/auto/corelib/tools/qpair/tst_qpair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class M { M() {} Q_DECL_UNUSED_MEMBER char _[4]; };
class P { Q_DECL_UNUSED_MEMBER char _[4]; };

QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(M, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(M, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(P, Q_PRIMITIVE_TYPE);
QT_END_NAMESPACE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ struct MyComplex
QT_BEGIN_NAMESPACE

Q_DECLARE_TYPEINFO(MyPrimitive, Q_PRIMITIVE_TYPE);
Q_DECLARE_TYPEINFO(MyMovable, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(MyMovable, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(MyComplex, Q_COMPLEX_TYPE);

QT_END_NAMESPACE
Expand Down
4 changes: 2 additions & 2 deletions tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ struct BigClass
};
static_assert(sizeof(BigClass) > sizeof(QVariant::Private::MaxInternalSize));
QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(BigClass, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(BigClass, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE
Q_DECLARE_METATYPE(BigClass);

Expand All @@ -103,7 +103,7 @@ struct SmallClass
};
static_assert(sizeof(SmallClass) <= sizeof(QVariant::Private::MaxInternalSize));
QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(SmallClass, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(SmallClass, Q_RELOCATABLE_TYPE);
QT_END_NAMESPACE
Q_DECLARE_METATYPE(SmallClass);

Expand Down
2 changes: 1 addition & 1 deletion tests/benchmarks/corelib/tools/qlist/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct MyComplex : public MyBase
QT_BEGIN_NAMESPACE

Q_DECLARE_TYPEINFO(MyPrimitive, Q_PRIMITIVE_TYPE);
Q_DECLARE_TYPEINFO(MyMovable, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(MyMovable, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(MyComplex, Q_COMPLEX_TYPE);

QT_END_NAMESPACE
Expand Down
8 changes: 4 additions & 4 deletions tests/manual/rhi/qrhiprof/qrhiprof.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ public slots:
}
};

Q_DECLARE_TYPEINFO(Tracker::Buffer, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Tracker::Texture, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Tracker::FrameTime, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Tracker::GpuFrameTime, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(Tracker::Buffer, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(Tracker::Texture, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(Tracker::FrameTime, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(Tracker::GpuFrameTime, Q_RELOCATABLE_TYPE);

void Tracker::handleEvent(const Parser::Event &e)
{
Expand Down