From 0440614af0bb08e373d8e3e40f90b6412c043d14 Mon Sep 17 00:00:00 2001 From: Andreas Buhr Date: Fri, 27 Nov 2020 11:18:00 +0100 Subject: Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE Q_MOVABLE_TYPE was conceived before C++ had move semantics. Now, with move semantics, its name is misleading. Q_RELOCATABLE_TYPE was introduced as a synonym to Q_MOVABLE_TYPE. Usage of Q_MOVABLE_TYPE is discouraged now. This patch replaces all usages of Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE in QtBase. As the two are synonymous, this patch should have no impact on users. Pick-to: 6.0 Change-Id: Ie653984363198c1aeb1f70f8e0fa189aae38eb5c Reviewed-by: Lars Knoll Reviewed-by: Andrei Golubev --- .../snippets/code/src_corelib_global_qglobal.cpp | 2 +- src/corelib/global/qlogging.cpp | 2 +- src/corelib/global/qnamespace.h | 2 +- src/corelib/global/qtypeinfo.h | 6 ++-- src/corelib/io/qfilesystemwatcher_win_p.h | 2 +- src/corelib/io/qloggingregistry_p.h | 2 +- src/corelib/io/qprocess_p.h | 4 +-- src/corelib/io/qresource.cpp | 2 +- src/corelib/io/qsettings.cpp | 6 ++-- src/corelib/io/qsettings_p.h | 4 +-- src/corelib/itemmodels/qabstractitemmodel.h | 6 ++-- src/corelib/itemmodels/qabstractitemmodel_p.h | 2 +- src/corelib/itemmodels/qitemselectionmodel.h | 2 +- src/corelib/kernel/qassociativeiterable.h | 6 ++-- src/corelib/kernel/qbasictimer.h | 2 +- src/corelib/kernel/qmetaobject.h | 6 ++-- src/corelib/kernel/qmetaobject_p.h | 2 +- src/corelib/kernel/qmetaobjectbuilder.cpp | 6 ++-- src/corelib/kernel/qmetatype.h | 2 +- src/corelib/kernel/qmimedata.cpp | 2 +- src/corelib/kernel/qobject_p.h | 6 ++-- src/corelib/kernel/qpointer.h | 2 +- src/corelib/kernel/qsequentialiterable.h | 6 ++-- src/corelib/serialization/qxmlstream.h | 8 +++--- src/corelib/text/qchar.h | 2 +- src/corelib/text/qlocale_p.h | 2 +- src/corelib/text/qstring.cpp | 2 +- src/corelib/text/qstring.h | 2 +- src/corelib/thread/qthread_p.h | 2 +- src/corelib/time/qdatetime.h | 4 +-- src/corelib/time/qtimezone.h | 2 +- src/corelib/time/qtimezoneprivate_p.h | 2 +- src/corelib/tools/qcommandlineparser.cpp | 2 +- src/corelib/tools/qline.h | 4 +-- src/corelib/tools/qmargins.h | 4 +-- src/corelib/tools/qpoint.h | 4 +-- src/corelib/tools/qrect.h | 4 +-- src/corelib/tools/qringbuffer_p.h | 2 +- src/corelib/tools/qshareddata.h | 4 +-- src/corelib/tools/qsharedpointer_impl.h | 4 +-- src/corelib/tools/qsize.h | 4 +-- src/corelib/tools/qversionnumber.h | 4 +-- .../accessible/linux/qspi_struct_marshallers_p.h | 14 +++++----- src/gui/image/qicon_p.h | 2 +- src/gui/image/qiconloader_p.h | 2 +- src/gui/image/qmovie.cpp | 2 +- src/gui/itemmodels/qfilesystemmodel_p.h | 4 +-- src/gui/itemmodels/qstandarditemmodel_p.h | 2 +- src/gui/kernel/qevent.h | 4 +-- src/gui/kernel/qkeysequence.cpp | 2 +- src/gui/kernel/qpointingdevice.h | 2 +- src/gui/kernel/qshortcutmap.cpp | 2 +- src/gui/math3d/qmatrix4x4.h | 2 +- src/gui/math3d/qquaternion.h | 2 +- src/gui/painting/qcolor.h | 2 +- src/gui/painting/qpageranges.h | 2 +- src/gui/painting/qpainter_p.h | 2 +- src/gui/painting/qplatformbackingstore.cpp | 2 +- src/gui/painting/qtransform.h | 2 +- src/gui/platform/unix/dbusmenu/qdbusmenutypes_p.h | 8 +++--- src/gui/platform/unix/dbustray/qdbustraytypes_p.h | 4 +-- src/gui/rhi/qrhi_p.h | 30 ++++++++++---------- src/gui/rhi/qrhi_p_p.h | 10 +++---- src/gui/rhi/qrhid3d11_p_p.h | 6 ++-- src/gui/rhi/qrhigles2_p_p.h | 6 ++-- src/gui/rhi/qrhimetal.mm | 4 +-- src/gui/rhi/qrhiprofiler_p.h | 4 +-- src/gui/rhi/qrhiprofiler_p_p.h | 2 +- src/gui/rhi/qrhivulkan_p_p.h | 12 ++++---- src/gui/rhi/qshader_p.h | 6 ++-- src/gui/text/freetype/qfontengine_ft_p.h | 2 +- src/gui/text/qcssparser_p.h | 32 +++++++++++----------- src/gui/text/qfontdatabase_p.h | 2 +- src/gui/text/qfontsubset.cpp | 8 +++--- src/gui/text/qstatictext_p.h | 2 +- src/gui/text/qtextdocumentfragment_p.h | 4 +-- src/gui/text/qtextengine_p.h | 2 +- src/gui/text/qtextformat.cpp | 2 +- src/gui/text/qtexthtmlparser_p.h | 4 +-- src/gui/text/qtextobject.h | 8 +++--- src/gui/text/qzip.cpp | 2 +- src/gui/text/qzipreader_p.h | 2 +- src/gui/util/qgridlayoutengine_p.h | 2 +- src/gui/util/qshaderformat_p.h | 2 +- src/gui/util/qshadergenerator_p.h | 2 +- src/gui/util/qshadergraph_p.h | 6 ++-- src/gui/util/qshadergraphloader_p.h | 2 +- src/gui/util/qshadernode_p.h | 4 +-- src/gui/util/qshadernodeport_p.h | 2 +- src/gui/util/qshadernodesloader_p.h | 2 +- src/gui/util/qtexturefiledata_p.h | 2 +- src/gui/vulkan/qvulkaninstance.h | 4 +-- .../access/qnetworkaccessauthenticationmanager_p.h | 2 +- src/network/access/qnetworkrequest_p.h | 2 +- src/network/ssl/qasn1element_p.h | 2 +- src/plugins/generic/tuiotouch/qoscbundle_p.h | 2 +- src/plugins/generic/tuiotouch/qoscmessage_p.h | 2 +- src/plugins/generic/tuiotouch/qtuiocursor_p.h | 2 +- src/plugins/generic/tuiotouch/qtuiotoken_p.h | 2 +- .../platforminputcontexts/ibus/qibustypes.h | 8 +++--- src/plugins/platforms/xcb/qxcbconnection.h | 2 +- src/plugins/platforms/xcb/qxcbdrag.h | 2 +- src/testlib/qbenchmark_p.h | 4 +-- src/tools/moc/moc.h | 20 +++++++------- src/tools/moc/symbols.h | 4 +-- src/tools/tracegen/provider.h | 6 ++-- src/tools/uic/cpp/cppwriteinitialization.h | 2 +- src/widgets/dialogs/qsidebar_p.h | 2 +- src/widgets/dialogs/qwizard.cpp | 4 +-- src/widgets/graphicsview/qgraphicsanchorlayout_p.h | 2 +- src/widgets/graphicsview/qgraphicsitem_p.h | 2 +- src/widgets/itemviews/qdatawidgetmapper.cpp | 2 +- src/widgets/itemviews/qheaderview_p.h | 2 +- src/widgets/itemviews/qtableview_p.h | 2 +- src/widgets/itemviews/qtreeview_p.h | 2 +- src/widgets/itemviews/qwidgetitemdata_p.h | 2 +- src/widgets/styles/qstylesheetstyle.cpp | 2 +- src/widgets/widgets/qtextbrowser.cpp | 2 +- src/widgets/widgets/qtoolbararealayout_p.h | 4 +-- 119 files changed, 237 insertions(+), 237 deletions(-) (limited to 'src') diff --git a/src/corelib/doc/snippets/code/src_corelib_global_qglobal.cpp b/src/corelib/doc/snippets/code/src_corelib_global_qglobal.cpp index a540b88247..2d060fbb47 100644 --- a/src/corelib/doc/snippets/code/src_corelib_global_qglobal.cpp +++ b/src/corelib/doc/snippets/code/src_corelib_global_qglobal.cpp @@ -553,7 +553,7 @@ private: int *data; }; -Q_DECLARE_TYPEINFO(Point2D, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(Point2D, Q_RELOCATABLE_TYPE); //! [39] diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index 52a565aa45..04468d7aac 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -1096,7 +1096,7 @@ struct QMessagePattern static QBasicMutex mutex; }; #ifdef QLOGGING_HAVE_BACKTRACE -Q_DECLARE_TYPEINFO(QMessagePattern::BacktraceParams, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QMessagePattern::BacktraceParams, Q_RELOCATABLE_TYPE); #endif QBasicMutex QMessagePattern::mutex; diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index a42dc726bc..4bc0186210 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -1919,7 +1919,7 @@ public: } }; -Q_DECLARE_TYPEINFO(QKeyCombination, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QKeyCombination, Q_RELOCATABLE_TYPE); constexpr QKeyCombination operator|(Qt::Modifier modifier, Qt::Key key) noexcept { diff --git a/src/corelib/global/qtypeinfo.h b/src/corelib/global/qtypeinfo.h index f3382ea17e..e5914414f2 100644 --- a/src/corelib/global/qtypeinfo.h +++ b/src/corelib/global/qtypeinfo.h @@ -188,7 +188,7 @@ Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); namespace as Qt for this to work. If the type was already released without Q_DECLARE_SHARED applied, - _and_ without an explicit Q_DECLARE_TYPEINFO(type, Q_MOVABLE_TYPE), + _and_ without an explicit Q_DECLARE_TYPEINFO(type, Q_RELOCATABLE_TYPE), then use Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(type) to mark the type shared (incl. swap()), without marking it movable (which would change the memory layout of QList, a BiC change. @@ -199,9 +199,9 @@ Q_DECLARE_TYPEINFO(TYPE, FLAGS); \ inline void swap(TYPE &value1, TYPE &value2) \ noexcept(noexcept(value1.swap(value2))) \ { value1.swap(value2); } -#define Q_DECLARE_SHARED(TYPE) Q_DECLARE_SHARED_IMPL(TYPE, Q_MOVABLE_TYPE) +#define Q_DECLARE_SHARED(TYPE) Q_DECLARE_SHARED_IMPL(TYPE, Q_RELOCATABLE_TYPE) #define Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(TYPE) \ - Q_DECLARE_SHARED_IMPL(TYPE, Q_MOVABLE_TYPE) + Q_DECLARE_SHARED_IMPL(TYPE, Q_RELOCATABLE_TYPE) namespace QTypeTraits { diff --git a/src/corelib/io/qfilesystemwatcher_win_p.h b/src/corelib/io/qfilesystemwatcher_win_p.h index 7808aff2ac..778ed8ce23 100644 --- a/src/corelib/io/qfilesystemwatcher_win_p.h +++ b/src/corelib/io/qfilesystemwatcher_win_p.h @@ -138,7 +138,7 @@ public: bool operator==(const QFileSystemWatcherPathKey &other) const { return !compare(other, Qt::CaseInsensitive); } }; -Q_DECLARE_TYPEINFO(QFileSystemWatcherPathKey, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QFileSystemWatcherPathKey, Q_RELOCATABLE_TYPE); inline size_t qHash(const QFileSystemWatcherPathKey &key) { return qHash(key.toCaseFolded()); } diff --git a/src/corelib/io/qloggingregistry_p.h b/src/corelib/io/qloggingregistry_p.h index b581af6c2f..9687a0e20d 100644 --- a/src/corelib/io/qloggingregistry_p.h +++ b/src/corelib/io/qloggingregistry_p.h @@ -88,7 +88,7 @@ private: }; Q_DECLARE_OPERATORS_FOR_FLAGS(QLoggingRule::PatternFlags) -Q_DECLARE_TYPEINFO(QLoggingRule, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QLoggingRule, Q_RELOCATABLE_TYPE); class Q_AUTOTEST_EXPORT QLoggingSettingsParser { diff --git a/src/corelib/io/qprocess_p.h b/src/corelib/io/qprocess_p.h index b04e05114d..1f449bd4c8 100644 --- a/src/corelib/io/qprocess_p.h +++ b/src/corelib/io/qprocess_p.h @@ -99,7 +99,7 @@ inline bool operator<(const QProcEnvKey &a, const QProcEnvKey &b) return a.compare(b, Qt::CaseInsensitive) < 0; } -Q_DECLARE_TYPEINFO(QProcEnvKey, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QProcEnvKey, Q_RELOCATABLE_TYPE); typedef QString QProcEnvValue; #else @@ -133,7 +133,7 @@ public: mutable QByteArray byteValue; mutable QString stringValue; }; -Q_DECLARE_TYPEINFO(QProcEnvValue, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QProcEnvValue, Q_RELOCATABLE_TYPE); #endif class QProcessEnvironmentPrivate: public QSharedData diff --git a/src/corelib/io/qresource.cpp b/src/corelib/io/qresource.cpp index aa144ecadd..a5995df211 100644 --- a/src/corelib/io/qresource.cpp +++ b/src/corelib/io/qresource.cpp @@ -194,7 +194,7 @@ static QString cleanPath(const QString &_path) return path; } -Q_DECLARE_TYPEINFO(QResourceRoot, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QResourceRoot, Q_RELOCATABLE_TYPE); typedef QList ResourceList; struct QResourceGlobalData diff --git a/src/corelib/io/qsettings.cpp b/src/corelib/io/qsettings.cpp index ac8f54155d..eb18595595 100644 --- a/src/corelib/io/qsettings.cpp +++ b/src/corelib/io/qsettings.cpp @@ -108,7 +108,7 @@ struct QConfFileCustomFormat QSettings::WriteFunc writeFunc; Qt::CaseSensitivity caseSensitivity; }; -Q_DECLARE_TYPEINFO(QConfFileCustomFormat, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QConfFileCustomFormat, Q_RELOCATABLE_TYPE); typedef QHash ConfFileHash; typedef QCache ConfFileCache; @@ -1715,7 +1715,7 @@ public: int position; }; -Q_DECLARE_TYPEINFO(QSettingsIniKey, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QSettingsIniKey, Q_RELOCATABLE_TYPE); static bool operator<(const QSettingsIniKey &k1, const QSettingsIniKey &k2) { @@ -1734,7 +1734,7 @@ struct QSettingsIniSection inline QSettingsIniSection() : position(-1) {} }; -Q_DECLARE_TYPEINFO(QSettingsIniSection, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QSettingsIniSection, Q_RELOCATABLE_TYPE); typedef QMap IniMap; diff --git a/src/corelib/io/qsettings_p.h b/src/corelib/io/qsettings_p.h index b70733e7b8..180ac8b2cd 100644 --- a/src/corelib/io/qsettings_p.h +++ b/src/corelib/io/qsettings_p.h @@ -108,7 +108,7 @@ private: }; #endif -Q_DECLARE_TYPEINFO(QSettingsKey, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QSettingsKey, Q_RELOCATABLE_TYPE); typedef QMap UnparsedSettingsMap; typedef QMap ParsedSettingsMap; @@ -134,7 +134,7 @@ public: int num; int maxNum; }; -Q_DECLARE_TYPEINFO(QSettingsGroup, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QSettingsGroup, Q_RELOCATABLE_TYPE); inline QString QSettingsGroup::toString() const { diff --git a/src/corelib/itemmodels/qabstractitemmodel.h b/src/corelib/itemmodels/qabstractitemmodel.h index 5d4ac59966..9b10106187 100644 --- a/src/corelib/itemmodels/qabstractitemmodel.h +++ b/src/corelib/itemmodels/qabstractitemmodel.h @@ -71,7 +71,7 @@ public: void clearData() noexcept { m_data.clear(); } }; -Q_DECLARE_TYPEINFO(QModelRoleData, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QModelRoleData, Q_RELOCATABLE_TYPE); class QModelRoleDataSpan; @@ -151,7 +151,7 @@ public: } }; -Q_DECLARE_TYPEINFO(QModelRoleDataSpan, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QModelRoleDataSpan, Q_RELOCATABLE_TYPE); class QAbstractItemModel; class QPersistentModelIndex; @@ -196,7 +196,7 @@ private: quintptr i; const QAbstractItemModel *m; }; -Q_DECLARE_TYPEINFO(QModelIndex, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QModelIndex, Q_RELOCATABLE_TYPE); #ifndef QT_NO_DEBUG_STREAM Q_CORE_EXPORT QDebug operator<<(QDebug, const QModelIndex &); diff --git a/src/corelib/itemmodels/qabstractitemmodel_p.h b/src/corelib/itemmodels/qabstractitemmodel_p.h index a2892cea87..dbab493c9c 100644 --- a/src/corelib/itemmodels/qabstractitemmodel_p.h +++ b/src/corelib/itemmodels/qabstractitemmodel_p.h @@ -152,7 +152,7 @@ public: static bool isVariantLessThan(const QVariant &left, const QVariant &right, Qt::CaseSensitivity cs = Qt::CaseSensitive, bool isLocaleAware = false); }; -Q_DECLARE_TYPEINFO(QAbstractItemModelPrivate::Change, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QAbstractItemModelPrivate::Change, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/corelib/itemmodels/qitemselectionmodel.h b/src/corelib/itemmodels/qitemselectionmodel.h index f2b608c05c..cf8fadde1b 100644 --- a/src/corelib/itemmodels/qitemselectionmodel.h +++ b/src/corelib/itemmodels/qitemselectionmodel.h @@ -112,7 +112,7 @@ public: private: QPersistentModelIndex tl, br; }; -Q_DECLARE_TYPEINFO(QItemSelectionRange, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QItemSelectionRange, Q_RELOCATABLE_TYPE); class QItemSelection; class QItemSelectionModelPrivate; diff --git a/src/corelib/kernel/qassociativeiterable.h b/src/corelib/kernel/qassociativeiterable.h index 4a1942fbc9..b940f605b8 100644 --- a/src/corelib/kernel/qassociativeiterable.h +++ b/src/corelib/kernel/qassociativeiterable.h @@ -198,9 +198,9 @@ inline QVariantRef &QVariantRef::ope return *this; } -Q_DECLARE_TYPEINFO(QAssociativeIterable, Q_MOVABLE_TYPE); -Q_DECLARE_TYPEINFO(QAssociativeIterable::iterator, Q_MOVABLE_TYPE); -Q_DECLARE_TYPEINFO(QAssociativeIterable::const_iterator, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QAssociativeIterable, Q_RELOCATABLE_TYPE); +Q_DECLARE_TYPEINFO(QAssociativeIterable::iterator, Q_RELOCATABLE_TYPE); +Q_DECLARE_TYPEINFO(QAssociativeIterable::const_iterator, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/corelib/kernel/qbasictimer.h b/src/corelib/kernel/qbasictimer.h index 64a9acbe6e..6a2728dd56 100644 --- a/src/corelib/kernel/qbasictimer.h +++ b/src/corelib/kernel/qbasictimer.h @@ -72,7 +72,7 @@ public: void start(int msec, Qt::TimerType timerType, QObject *obj); void stop(); }; -Q_DECLARE_TYPEINFO(QBasicTimer, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QBasicTimer, Q_RELOCATABLE_TYPE); inline void swap(QBasicTimer &lhs, QBasicTimer &rhs) noexcept { lhs.swap(rhs); } diff --git a/src/corelib/kernel/qmetaobject.h b/src/corelib/kernel/qmetaobject.h index 2cc334aff3..dd4619dc03 100644 --- a/src/corelib/kernel/qmetaobject.h +++ b/src/corelib/kernel/qmetaobject.h @@ -213,7 +213,7 @@ private: friend bool operator!=(const QMetaMethod &m1, const QMetaMethod &m2) noexcept { return !(m1 == m2); } }; -Q_DECLARE_TYPEINFO(QMetaMethod, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QMetaMethod, Q_RELOCATABLE_TYPE); class Q_CORE_EXPORT QMetaEnum { @@ -270,7 +270,7 @@ private: friend struct QMetaObject; friend struct QMetaObjectPrivate; }; -Q_DECLARE_TYPEINFO(QMetaEnum, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QMetaEnum, Q_RELOCATABLE_TYPE); class Q_CORE_EXPORT QMetaProperty { @@ -378,7 +378,7 @@ private: Data data; friend struct QMetaObject; }; -Q_DECLARE_TYPEINFO(QMetaClassInfo, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QMetaClassInfo, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/corelib/kernel/qmetaobject_p.h b/src/corelib/kernel/qmetaobject_p.h index f98185ac81..efc1eafc8f 100644 --- a/src/corelib/kernel/qmetaobject_p.h +++ b/src/corelib/kernel/qmetaobject_p.h @@ -161,7 +161,7 @@ private: int _type; QByteArray _name; }; -Q_DECLARE_TYPEINFO(QArgumentType, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QArgumentType, Q_RELOCATABLE_TYPE); typedef QVarLengthArray QArgumentTypeArray; diff --git a/src/corelib/kernel/qmetaobjectbuilder.cpp b/src/corelib/kernel/qmetaobjectbuilder.cpp index ad7a8ce4ab..f4df791ddf 100644 --- a/src/corelib/kernel/qmetaobjectbuilder.cpp +++ b/src/corelib/kernel/qmetaobjectbuilder.cpp @@ -146,7 +146,7 @@ public: return signature.left(qMax(signature.indexOf('('), 0)); } }; -Q_DECLARE_TYPEINFO(QMetaMethodBuilderPrivate, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QMetaMethodBuilderPrivate, Q_RELOCATABLE_TYPE); class QMetaPropertyBuilderPrivate { @@ -183,7 +183,7 @@ public: flags &= ~f; } }; -Q_DECLARE_TYPEINFO(QMetaPropertyBuilderPrivate, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QMetaPropertyBuilderPrivate, Q_RELOCATABLE_TYPE); class QMetaEnumBuilderPrivate { @@ -200,7 +200,7 @@ public: QList keys; QList values; }; -Q_DECLARE_TYPEINFO(QMetaEnumBuilderPrivate, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QMetaEnumBuilderPrivate, Q_RELOCATABLE_TYPE); class QMetaObjectBuilderPrivate { diff --git a/src/corelib/kernel/qmetatype.h b/src/corelib/kernel/qmetatype.h index e453c61d77..de6632ffc6 100644 --- a/src/corelib/kernel/qmetatype.h +++ b/src/corelib/kernel/qmetatype.h @@ -709,7 +709,7 @@ public: inline void first(void *dataPtr) const { _getFirst(&_pair, dataPtr); } inline void second(void *dataPtr) const { _getSecond(&_pair, dataPtr); } }; -QT_METATYPE_PRIVATE_DECLARE_TYPEINFO(QPairVariantInterfaceImpl, Q_MOVABLE_TYPE) +QT_METATYPE_PRIVATE_DECLARE_TYPEINFO(QPairVariantInterfaceImpl, Q_RELOCATABLE_TYPE) template struct QPairVariantInterfaceConvertFunctor; diff --git a/src/corelib/kernel/qmimedata.cpp b/src/corelib/kernel/qmimedata.cpp index d99874bd67..1ed416e3e8 100644 --- a/src/corelib/kernel/qmimedata.cpp +++ b/src/corelib/kernel/qmimedata.cpp @@ -58,7 +58,7 @@ struct QMimeDataStruct QString format; QVariant data; }; -Q_DECLARE_TYPEINFO(QMimeDataStruct, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QMimeDataStruct, Q_RELOCATABLE_TYPE); class QMimeDataPrivate : public QObjectPrivate { diff --git a/src/corelib/kernel/qobject_p.h b/src/corelib/kernel/qobject_p.h index 5fc12c3165..79539fbd55 100644 --- a/src/corelib/kernel/qobject_p.h +++ b/src/corelib/kernel/qobject_p.h @@ -387,7 +387,7 @@ public: QBindingStorage bindingStorage; }; -Q_DECLARE_TYPEINFO(QObjectPrivate::ConnectionList, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QObjectPrivate::ConnectionList, Q_RELOCATABLE_TYPE); /* Catch mixing of incompatible library versions. @@ -498,8 +498,8 @@ bool QObjectPrivate::disconnect(const typename QtPrivate::FunctionPointer< Func1 &SignalType::Object::staticMetaObject); } -Q_DECLARE_TYPEINFO(QObjectPrivate::Connection, Q_MOVABLE_TYPE); -Q_DECLARE_TYPEINFO(QObjectPrivate::Sender, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QObjectPrivate::Connection, Q_RELOCATABLE_TYPE); +Q_DECLARE_TYPEINFO(QObjectPrivate::Sender, Q_RELOCATABLE_TYPE); class QSemaphore; class Q_CORE_EXPORT QAbstractMetaCallEvent : public QEvent diff --git a/src/corelib/kernel/qpointer.h b/src/corelib/kernel/qpointer.h index 30c7d923fd..b877b56133 100644 --- a/src/corelib/kernel/qpointer.h +++ b/src/corelib/kernel/qpointer.h @@ -112,7 +112,7 @@ public: #undef DECLARE_COMPARE_SET #undef DECLARE_TEMPLATE_COMPARE_SET }; -template Q_DECLARE_TYPEINFO_BODY(QPointer, Q_MOVABLE_TYPE); +template Q_DECLARE_TYPEINFO_BODY(QPointer, Q_RELOCATABLE_TYPE); template QPointer diff --git a/src/corelib/kernel/qsequentialiterable.h b/src/corelib/kernel/qsequentialiterable.h index a5a22b55df..8755b07aec 100644 --- a/src/corelib/kernel/qsequentialiterable.h +++ b/src/corelib/kernel/qsequentialiterable.h @@ -180,9 +180,9 @@ inline QVariantRef &QVariantRef::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 diff --git a/src/corelib/serialization/qxmlstream.h b/src/corelib/serialization/qxmlstream.h index 519600143f..b7f45224ae 100644 --- a/src/corelib/serialization/qxmlstream.h +++ b/src/corelib/serialization/qxmlstream.h @@ -103,7 +103,7 @@ public: { 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. @@ -154,7 +154,7 @@ public: { return !operator==(other); } }; -Q_DECLARE_TYPEINFO(QXmlStreamNamespaceDeclaration, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QXmlStreamNamespaceDeclaration, Q_RELOCATABLE_TYPE); typedef QList QXmlStreamNamespaceDeclarations; class Q_CORE_EXPORT QXmlStreamNotationDeclaration { @@ -175,7 +175,7 @@ public: { return !operator==(other); } }; -Q_DECLARE_TYPEINFO(QXmlStreamNotationDeclaration, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QXmlStreamNotationDeclaration, Q_RELOCATABLE_TYPE); typedef QList QXmlStreamNotationDeclarations; class Q_CORE_EXPORT QXmlStreamEntityDeclaration { @@ -201,7 +201,7 @@ public: { return !operator==(other); } }; -Q_DECLARE_TYPEINFO(QXmlStreamEntityDeclaration, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QXmlStreamEntityDeclaration, Q_RELOCATABLE_TYPE); typedef QList QXmlStreamEntityDeclarations; class Q_CORE_EXPORT QXmlStreamEntityResolver diff --git a/src/corelib/text/qchar.h b/src/corelib/text/qchar.h index 32ecfa0e48..78d95e39fa 100644 --- a/src/corelib/text/qchar.h +++ b/src/corelib/text/qchar.h @@ -638,7 +638,7 @@ private: 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); diff --git a/src/corelib/text/qlocale_p.h b/src/corelib/text/qlocale_p.h index 69b6136313..4bad1c698e 100644 --- a/src/corelib/text/qlocale_p.h +++ b/src/corelib/text/qlocale_p.h @@ -135,7 +135,7 @@ private: 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) diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index c63da7f1d1..76f0e15303 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -4456,7 +4456,7 @@ public: 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 §ions, qsizetype start, qsizetype end, QString::SectionFlags flags) diff --git a/src/corelib/text/qstring.h b/src/corelib/text/qstring.h index fa4eeb0367..843ee9966e 100644 --- a/src/corelib/text/qstring.h +++ b/src/corelib/text/qstring.h @@ -311,7 +311,7 @@ private: 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 diff --git a/src/corelib/thread/qthread_p.h b/src/corelib/thread/qthread_p.h index 6565b5777e..f4c60969ac 100644 --- a/src/corelib/thread/qthread_p.h +++ b/src/corelib/thread/qthread_p.h @@ -85,7 +85,7 @@ public: : 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) { diff --git a/src/corelib/time/qdatetime.h b/src/corelib/time/qdatetime.h index 7ce7c5f43b..bc8c09b1e9 100644 --- a/src/corelib/time/qdatetime.h +++ b/src/corelib/time/qdatetime.h @@ -160,7 +160,7 @@ private: 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 { @@ -230,7 +230,7 @@ private: 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; diff --git a/src/corelib/time/qtimezone.h b/src/corelib/time/qtimezone.h index 39686f1615..5fd9044ef5 100644 --- a/src/corelib/time/qtimezone.h +++ b/src/corelib/time/qtimezone.h @@ -171,7 +171,7 @@ private: QSharedDataPointer 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 diff --git a/src/corelib/time/qtimezoneprivate_p.h b/src/corelib/time/qtimezoneprivate_p.h index 19309e04fb..625aba2079 100644 --- a/src/corelib/time/qtimezoneprivate_p.h +++ b/src/corelib/time/qtimezoneprivate_p.h @@ -168,7 +168,7 @@ public: protected: QByteArray m_id; }; -Q_DECLARE_TYPEINFO(QTimeZonePrivate::Data, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QTimeZonePrivate::Data, Q_RELOCATABLE_TYPE); template<> QTimeZonePrivate *QSharedDataPointer::clone(); diff --git a/src/corelib/tools/qcommandlineparser.cpp b/src/corelib/tools/qcommandlineparser.cpp index 99e7484664..8e575be635 100644 --- a/src/corelib/tools/qcommandlineparser.cpp +++ b/src/corelib/tools/qcommandlineparser.cpp @@ -126,7 +126,7 @@ public: //! 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 { diff --git a/src/corelib/tools/qline.h b/src/corelib/tools/qline.h index e35de2af6d..4948559509 100644 --- a/src/corelib/tools/qline.h +++ b/src/corelib/tools/qline.h @@ -89,7 +89,7 @@ public: private: QPoint pt1, pt2; }; -Q_DECLARE_TYPEINFO(QLine, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QLine, Q_RELOCATABLE_TYPE); /******************************************************************************* * class QLine inline members @@ -274,7 +274,7 @@ public: private: QPointF pt1, pt2; }; -Q_DECLARE_TYPEINFO(QLineF, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QLineF, Q_RELOCATABLE_TYPE); /******************************************************************************* * class QLineF inline members diff --git a/src/corelib/tools/qmargins.h b/src/corelib/tools/qmargins.h index b0f61eeb66..d947e2da8e 100644 --- a/src/corelib/tools/qmargins.h +++ b/src/corelib/tools/qmargins.h @@ -112,7 +112,7 @@ private: } }; -Q_DECLARE_TYPEINFO(QMargins, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QMargins, Q_RELOCATABLE_TYPE); /***************************************************************************** QMargins stream functions @@ -361,7 +361,7 @@ private: } }; -Q_DECLARE_TYPEINFO(QMarginsF, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QMarginsF, Q_RELOCATABLE_TYPE); /***************************************************************************** QMarginsF stream functions diff --git a/src/corelib/tools/qpoint.h b/src/corelib/tools/qpoint.h index f2acb9f3ad..118d837d69 100644 --- a/src/corelib/tools/qpoint.h +++ b/src/corelib/tools/qpoint.h @@ -129,7 +129,7 @@ private: } }; -Q_DECLARE_TYPEINFO(QPoint, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QPoint, Q_RELOCATABLE_TYPE); /***************************************************************************** QPoint stream functions @@ -323,7 +323,7 @@ private: } }; -Q_DECLARE_TYPEINFO(QPointF, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QPointF, Q_RELOCATABLE_TYPE); /***************************************************************************** QPointF stream functions diff --git a/src/corelib/tools/qrect.h b/src/corelib/tools/qrect.h index 14cab1137e..da80106e3e 100644 --- a/src/corelib/tools/qrect.h +++ b/src/corelib/tools/qrect.h @@ -164,7 +164,7 @@ private: int x2; int y2; }; -Q_DECLARE_TYPEINFO(QRect, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRect, Q_RELOCATABLE_TYPE); /***************************************************************************** @@ -625,7 +625,7 @@ private: qreal w; qreal h; }; -Q_DECLARE_TYPEINFO(QRectF, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRectF, Q_RELOCATABLE_TYPE); /***************************************************************************** diff --git a/src/corelib/tools/qringbuffer_p.h b/src/corelib/tools/qringbuffer_p.h index 2cd6dd0756..ec8d296a81 100644 --- a/src/corelib/tools/qringbuffer_p.h +++ b/src/corelib/tools/qringbuffer_p.h @@ -267,7 +267,7 @@ private: }; Q_DECLARE_SHARED(QRingChunk) -Q_DECLARE_TYPEINFO(QRingBuffer, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRingBuffer, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/corelib/tools/qshareddata.h b/src/corelib/tools/qshareddata.h index bda117739c..de11257db3 100644 --- a/src/corelib/tools/qshareddata.h +++ b/src/corelib/tools/qshareddata.h @@ -293,8 +293,8 @@ size_t qHash(const QExplicitlySharedDataPointer &ptr, size_t seed = 0) noexce return qHash(ptr.data(), seed); } -template Q_DECLARE_TYPEINFO_BODY(QSharedDataPointer, Q_MOVABLE_TYPE); -template Q_DECLARE_TYPEINFO_BODY(QExplicitlySharedDataPointer, Q_MOVABLE_TYPE); +template Q_DECLARE_TYPEINFO_BODY(QSharedDataPointer, Q_RELOCATABLE_TYPE); +template Q_DECLARE_TYPEINFO_BODY(QExplicitlySharedDataPointer, Q_RELOCATABLE_TYPE); #define QT_DECLARE_QSDP_SPECIALIZATION_DTOR(Class) \ template<> QSharedDataPointer::~QSharedDataPointer(); diff --git a/src/corelib/tools/qsharedpointer_impl.h b/src/corelib/tools/qsharedpointer_impl.h index 53d9a34acb..222aecb018 100644 --- a/src/corelib/tools/qsharedpointer_impl.h +++ b/src/corelib/tools/qsharedpointer_impl.h @@ -946,8 +946,8 @@ std::shared_ptr qSharedPointerObjectCast(std::shared_ptr &&src) #endif -template Q_DECLARE_TYPEINFO_BODY(QWeakPointer, Q_MOVABLE_TYPE); -template Q_DECLARE_TYPEINFO_BODY(QSharedPointer, Q_MOVABLE_TYPE); +template Q_DECLARE_TYPEINFO_BODY(QWeakPointer, Q_RELOCATABLE_TYPE); +template Q_DECLARE_TYPEINFO_BODY(QSharedPointer, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/corelib/tools/qsize.h b/src/corelib/tools/qsize.h index b2409a4f89..a11169c53c 100644 --- a/src/corelib/tools/qsize.h +++ b/src/corelib/tools/qsize.h @@ -113,7 +113,7 @@ private: int wd; int ht; }; -Q_DECLARE_TYPEINFO(QSize, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QSize, Q_RELOCATABLE_TYPE); /***************************************************************************** QSize stream functions @@ -290,7 +290,7 @@ private: qreal wd; qreal ht; }; -Q_DECLARE_TYPEINFO(QSizeF, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QSizeF, Q_RELOCATABLE_TYPE); /***************************************************************************** diff --git a/src/corelib/tools/qversionnumber.h b/src/corelib/tools/qversionnumber.h index a026e40324..7f530b4b98 100644 --- a/src/corelib/tools/qversionnumber.h +++ b/src/corelib/tools/qversionnumber.h @@ -303,7 +303,7 @@ private: 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); @@ -454,7 +454,7 @@ private: }; 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); diff --git a/src/gui/accessible/linux/qspi_struct_marshallers_p.h b/src/gui/accessible/linux/qspi_struct_marshallers_p.h index 9850058efc..c7a4a97176 100644 --- a/src/gui/accessible/linux/qspi_struct_marshallers_p.h +++ b/src/gui/accessible/linux/qspi_struct_marshallers_p.h @@ -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); @@ -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 QSpiAccessibleCacheArray; @@ -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 QSpiActionArray; @@ -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 QSpiEventListenerArray; @@ -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 QSpiTextRangeList; typedef QMap QSpiAttributeSet; @@ -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); @@ -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); diff --git a/src/gui/image/qicon_p.h b/src/gui/image/qicon_p.h index 40cb0c7efa..244da260b0 100644 --- a/src/gui/image/qicon_p.h +++ b/src/gui/image/qicon_p.h @@ -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) diff --git a/src/gui/image/qiconloader_p.h b/src/gui/image/qiconloader_p.h index a17cea183e..d02b2da2cc 100644 --- a/src/gui/image/qiconloader_p.h +++ b/src/gui/image/qiconloader_p.h @@ -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 { diff --git a/src/gui/image/qmovie.cpp b/src/gui/image/qmovie.cpp index 096b4f6877..e99093d582 100644 --- a/src/gui/image/qmovie.cpp +++ b/src/gui/image/qmovie.cpp @@ -220,7 +220,7 @@ public: 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 { diff --git a/src/gui/itemmodels/qfilesystemmodel_p.h b/src/gui/itemmodels/qfilesystemmodel_p.h index 092eae3b2e..4acd6a92df 100644 --- a/src/gui/itemmodels/qfilesystemmodel_p.h +++ b/src/gui/itemmodels/qfilesystemmodel_p.h @@ -82,7 +82,7 @@ public: 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 @@ -316,7 +316,7 @@ public: // 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 diff --git a/src/gui/itemmodels/qstandarditemmodel_p.h b/src/gui/itemmodels/qstandarditemmodel_p.h index 92eb38b40b..486006f70c 100644 --- a/src/gui/itemmodels/qstandarditemmodel_p.h +++ b/src/gui/itemmodels/qstandarditemmodel_p.h @@ -74,7 +74,7 @@ public: 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 diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h index 7d8d4e20f1..3f8b53262f 100644 --- a/src/gui/kernel/qevent.h +++ b/src/gui/kernel/qevent.h @@ -721,7 +721,7 @@ private: 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 { @@ -745,7 +745,7 @@ private: friend QTypeInfo; QList m_values; }; -Q_DECLARE_TYPEINFO(QInputMethodQueryEvent::QueryPair, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QInputMethodQueryEvent::QueryPair, Q_RELOCATABLE_TYPE); #endif // QT_NO_INPUTMETHOD diff --git a/src/gui/kernel/qkeysequence.cpp b/src/gui/kernel/qkeysequence.cpp index 5d2a95c33f..c10ba93954 100644 --- a/src/gui/kernel/qkeysequence.cpp +++ b/src/gui/kernel/qkeysequence.cpp @@ -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, globalModifs) Q_GLOBAL_STATIC(QList, globalPortableModifs) diff --git a/src/gui/kernel/qpointingdevice.h b/src/gui/kernel/qpointingdevice.h index 1e220e235f..094780765a 100644 --- a/src/gui/kernel/qpointingdevice.h +++ b/src/gui/kernel/qpointingdevice.h @@ -79,7 +79,7 @@ private: // 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; diff --git a/src/gui/kernel/qshortcutmap.cpp b/src/gui/kernel/qshortcutmap.cpp index 7fabfc5f54..2945115402 100644 --- a/src/gui/kernel/qshortcutmap.cpp +++ b/src/gui/kernel/qshortcutmap.cpp @@ -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 diff --git a/src/gui/math3d/qmatrix4x4.h b/src/gui/math3d/qmatrix4x4.h index 2a448f0baf..402f27fcb5 100644 --- a/src/gui/math3d/qmatrix4x4.h +++ b/src/gui/math3d/qmatrix4x4.h @@ -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, diff --git a/src/gui/math3d/qquaternion.h b/src/gui/math3d/qquaternion.h index 99ee9085f9..76fa237afd 100644 --- a/src/gui/math3d/qquaternion.h +++ b/src/gui/math3d/qquaternion.h @@ -169,7 +169,7 @@ private: 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) {} diff --git a/src/gui/painting/qcolor.h b/src/gui/painting/qcolor.h index 65d82c2043..06b264eacf 100644 --- a/src/gui/painting/qcolor.h +++ b/src/gui/painting/qcolor.h @@ -297,7 +297,7 @@ public: // can't give friendship to a namespace, so it needs to be public : 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); } diff --git a/src/gui/painting/qpageranges.h b/src/gui/painting/qpageranges.h index 823d83665b..d525124a62 100644 --- a/src/gui/painting/qpageranges.h +++ b/src/gui/painting/qpageranges.h @@ -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 diff --git a/src/gui/painting/qpainter_p.h b/src/gui/painting/qpainter_p.h index 29e2aca175..71e90c9717 100644 --- a/src/gui/painting/qpainter_p.h +++ b/src/gui/painting/qpainter_p.h @@ -140,7 +140,7 @@ public: }; -Q_DECLARE_TYPEINFO(QPainterClipInfo, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QPainterClipInfo, Q_RELOCATABLE_TYPE); class Q_GUI_EXPORT QPainterState : public QPaintEngineState { diff --git a/src/gui/painting/qplatformbackingstore.cpp b/src/gui/painting/qplatformbackingstore.cpp index 1a7c6c5189..bf7dc55644 100644 --- a/src/gui/painting/qplatformbackingstore.cpp +++ b/src/gui/painting/qplatformbackingstore.cpp @@ -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 { diff --git a/src/gui/painting/qtransform.h b/src/gui/painting/qtransform.h index a84563baea..a1ec8e9399 100644 --- a/src/gui/painting/qtransform.h +++ b/src/gui/painting/qtransform.h @@ -177,7 +177,7 @@ private: 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; diff --git a/src/gui/platform/unix/dbusmenu/qdbusmenutypes_p.h b/src/gui/platform/unix/dbusmenu/qdbusmenutypes_p.h index 047f6c963c..092798d9e3 100644 --- a/src/gui/platform/unix/dbusmenu/qdbusmenutypes_p.h +++ b/src/gui/platform/unix/dbusmenu/qdbusmenutypes_p.h @@ -82,7 +82,7 @@ public: 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); @@ -94,7 +94,7 @@ public: 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); @@ -112,7 +112,7 @@ public: QVariantMap m_properties; QList 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); @@ -127,7 +127,7 @@ public: 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); diff --git a/src/gui/platform/unix/dbustray/qdbustraytypes_p.h b/src/gui/platform/unix/dbustray/qdbustraytypes_p.h index d11ccd04ec..5a48a9110a 100644 --- a/src/gui/platform/unix/dbustray/qdbustraytypes_p.h +++ b/src/gui/platform/unix/dbustray/qdbustraytypes_p.h @@ -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; @@ -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); diff --git a/src/gui/rhi/qrhi_p.h b/src/gui/rhi/qrhi_p.h index 6de14c47ad..fc3034c984 100644 --- a/src/gui/rhi/qrhi_p.h +++ b/src/gui/rhi/qrhi_p.h @@ -90,7 +90,7 @@ private: 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; @@ -122,7 +122,7 @@ private: 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; @@ -146,7 +146,7 @@ private: std::array 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; @@ -181,7 +181,7 @@ private: 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; @@ -237,7 +237,7 @@ private: 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; @@ -281,7 +281,7 @@ private: 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; @@ -318,7 +318,7 @@ private: 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; @@ -466,7 +466,7 @@ private: int m_resolveLevel = 0; }; -Q_DECLARE_TYPEINFO(QRhiColorAttachment, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRhiColorAttachment, Q_RELOCATABLE_TYPE); class Q_GUI_EXPORT QRhiTextureRenderTargetDescription { @@ -499,7 +499,7 @@ private: QRhiTexture *m_depthTexture = nullptr; }; -Q_DECLARE_TYPEINFO(QRhiTextureRenderTargetDescription, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRhiTextureRenderTargetDescription, Q_RELOCATABLE_TYPE); class Q_GUI_EXPORT QRhiTextureSubresourceUploadDescription { @@ -531,7 +531,7 @@ private: QPoint m_sourceTopLeft; }; -Q_DECLARE_TYPEINFO(QRhiTextureSubresourceUploadDescription, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRhiTextureSubresourceUploadDescription, Q_RELOCATABLE_TYPE); class Q_GUI_EXPORT QRhiTextureUploadEntry { @@ -554,7 +554,7 @@ private: QRhiTextureSubresourceUploadDescription m_desc; }; -Q_DECLARE_TYPEINFO(QRhiTextureUploadEntry, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRhiTextureUploadEntry, Q_RELOCATABLE_TYPE); class Q_GUI_EXPORT QRhiTextureUploadDescription { @@ -577,7 +577,7 @@ private: QVarLengthArray m_entries; }; -Q_DECLARE_TYPEINFO(QRhiTextureUploadDescription, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRhiTextureUploadDescription, Q_RELOCATABLE_TYPE); class Q_GUI_EXPORT QRhiTextureCopyDescription { @@ -615,7 +615,7 @@ private: QPoint m_destinationTopLeft; }; -Q_DECLARE_TYPEINFO(QRhiTextureCopyDescription, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRhiTextureCopyDescription, Q_RELOCATABLE_TYPE); class Q_GUI_EXPORT QRhiReadbackDescription { @@ -638,7 +638,7 @@ private: int m_level = 0; }; -Q_DECLARE_TYPEINFO(QRhiReadbackDescription, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRhiReadbackDescription, Q_RELOCATABLE_TYPE); struct Q_GUI_EXPORT QRhiNativeHandles { @@ -1249,7 +1249,7 @@ protected: 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 { diff --git a/src/gui/rhi/qrhi_p_p.h b/src/gui/rhi/qrhi_p_p.h index ad1e3c0fe0..538df66868 100644 --- a/src/gui/rhi/qrhi_p_p.h +++ b/src/gui/rhi/qrhi_p_p.h @@ -351,7 +351,7 @@ private: QRhiBufferDataPrivate *d = nullptr; }; -Q_DECLARE_TYPEINFO(QRhiBufferData, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRhiBufferData, Q_RELOCATABLE_TYPE); class QRhiResourceUpdateBatchPrivate { @@ -498,8 +498,8 @@ public: 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 struct QRhiBatchedBindings @@ -652,8 +652,8 @@ private: QHash 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 class QRhiBackendCommandList diff --git a/src/gui/rhi/qrhid3d11_p_p.h b/src/gui/rhi/qrhid3d11_p_p.h index ff62327bdf..3b56393900 100644 --- a/src/gui/rhi/qrhid3d11_p_p.h +++ b/src/gui/rhi/qrhid3d11_p_p.h @@ -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 { @@ -762,8 +762,8 @@ public: } 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 diff --git a/src/gui/rhi/qrhigles2_p_p.h b/src/gui/rhi/qrhigles2_p_p.h index a231740c66..a336497b63 100644 --- a/src/gui/rhi/qrhigles2_p_p.h +++ b/src/gui/rhi/qrhigles2_p_p.h @@ -258,7 +258,7 @@ struct QGles2UniformDescription int arrayDim; }; -Q_DECLARE_TYPEINFO(QGles2UniformDescription, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QGles2UniformDescription, Q_RELOCATABLE_TYPE); struct QGles2SamplerDescription { @@ -266,7 +266,7 @@ struct QGles2SamplerDescription int binding; }; -Q_DECLARE_TYPEINFO(QGles2SamplerDescription, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QGles2SamplerDescription, Q_RELOCATABLE_TYPE); using QGles2UniformDescriptionVector = QVarLengthArray; using QGles2SamplerDescriptionVector = QVarLengthArray; @@ -998,7 +998,7 @@ public: QHash m_shaderCache; }; -Q_DECLARE_TYPEINFO(QRhiGles2::DeferredReleaseEntry, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRhiGles2::DeferredReleaseEntry, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/gui/rhi/qrhimetal.mm b/src/gui/rhi/qrhimetal.mm index d8eb325909..9e0655ef06 100644 --- a/src/gui/rhi/qrhimetal.mm +++ b/src/gui/rhi/qrhimetal.mm @@ -216,8 +216,8 @@ struct QRhiMetalData QHash 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 { diff --git a/src/gui/rhi/qrhiprofiler_p.h b/src/gui/rhi/qrhiprofiler_p.h index 89fd0a8798..6bd72988dc 100644 --- a/src/gui/rhi/qrhiprofiler_p.h +++ b/src/gui/rhi/qrhiprofiler_p.h @@ -112,8 +112,8 @@ private: 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 diff --git a/src/gui/rhi/qrhiprofiler_p_p.h b/src/gui/rhi/qrhiprofiler_p_p.h index 9e209fe98e..349b4d6b74 100644 --- a/src/gui/rhi/qrhiprofiler_p_p.h +++ b/src/gui/rhi/qrhiprofiler_p_p.h @@ -114,7 +114,7 @@ public: QHash swapchains; }; -Q_DECLARE_TYPEINFO(QRhiProfilerPrivate::Sc, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRhiProfilerPrivate::Sc, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/gui/rhi/qrhivulkan_p_p.h b/src/gui/rhi/qrhivulkan_p_p.h index d3f42957b1..7fdb108da4 100644 --- a/src/gui/rhi/qrhivulkan_p_p.h +++ b/src/gui/rhi/qrhivulkan_p_p.h @@ -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; @@ -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 { @@ -991,10 +991,10 @@ public: QList 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 diff --git a/src/gui/rhi/qshader_p.h b/src/gui/rhi/qshader_p.h index 689d92b91d..0091851e50 100644 --- a/src/gui/rhi/qshader_p.h +++ b/src/gui/rhi/qshader_p.h @@ -79,7 +79,7 @@ private: }; 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; @@ -103,7 +103,7 @@ private: QByteArray m_entryPoint; }; -Q_DECLARE_TYPEINFO(QShaderCode, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QShaderCode, Q_RELOCATABLE_TYPE); class Q_GUI_EXPORT QShader { @@ -192,7 +192,7 @@ private: 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; diff --git a/src/gui/text/freetype/qfontengine_ft_p.h b/src/gui/text/freetype/qfontengine_ft_p.h index dcbe49ff99..8962327cd1 100644 --- a/src/gui/text/freetype/qfontengine_ft_p.h +++ b/src/gui/text/freetype/qfontengine_ft_p.h @@ -338,7 +338,7 @@ private: 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) diff --git a/src/gui/text/qcssparser_p.h b/src/gui/text/qcssparser_p.h index 1f71a1c4af..1ccfc45d21 100644 --- a/src/gui/text/qcssparser_p.h +++ b/src/gui/text/qcssparser_p.h @@ -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) {} @@ -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) {} @@ -411,7 +411,7 @@ 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; @@ -419,7 +419,7 @@ struct BackgroundData { 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; @@ -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 - x:hover, y:clicked z:checked @@ -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); @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -602,28 +602,28 @@ struct StyleRule QList declarations; int order; }; -QT_CSS_DECLARE_TYPEINFO(StyleRule, Q_MOVABLE_TYPE) +QT_CSS_DECLARE_TYPEINFO(StyleRule, Q_RELOCATABLE_TYPE) struct MediaRule { QStringList media; QList styleRules; }; -QT_CSS_DECLARE_TYPEINFO(MediaRule, Q_MOVABLE_TYPE) +QT_CSS_DECLARE_TYPEINFO(MediaRule, Q_RELOCATABLE_TYPE) struct PageRule { QString selector; QList 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, @@ -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 @@ -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 { diff --git a/src/gui/text/qfontdatabase_p.h b/src/gui/text/qfontdatabase_p.h index 303109e1a7..f7998153a1 100644 --- a/src/gui/text/qfontdatabase_p.h +++ b/src/gui/text/qfontdatabase_p.h @@ -272,7 +272,7 @@ public: void invalidate(); }; -Q_DECLARE_TYPEINFO(QFontDatabasePrivate::ApplicationFont, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QFontDatabasePrivate::ApplicationFont, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/gui/text/qfontsubset.cpp b/src/gui/text/qfontsubset.cpp index 0c60bf7b70..875ff34a62 100644 --- a/src/gui/text/qfontsubset.cpp +++ b/src/gui/text/qfontsubset.cpp @@ -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 { @@ -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); @@ -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 @@ -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 &name); diff --git a/src/gui/text/qstatictext_p.h b/src/gui/text/qstatictext_p.h index 3760d3bf0f..1d79148bdc 100644 --- a/src/gui/text/qstatictext_p.h +++ b/src/gui/text/qstatictext_p.h @@ -119,7 +119,7 @@ private: // private to avoid abuse // ================ // 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 diff --git a/src/gui/text/qtextdocumentfragment_p.h b/src/gui/text/qtextdocumentfragment_p.h index 3683cd8d4f..a321b84c5a 100644 --- a/src/gui/text/qtextdocumentfragment_p.h +++ b/src/gui/text/qtextdocumentfragment_p.h @@ -233,9 +233,9 @@ private: 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 diff --git a/src/gui/text/qtextengine_p.h b/src/gui/text/qtextengine_p.h index 0e80510058..6ae3196963 100644 --- a/src/gui/text/qtextengine_p.h +++ b/src/gui/text/qtextengine_p.h @@ -673,7 +673,7 @@ public: LayoutData _layoutData; void *_memory[MemSize]; }; -Q_DECLARE_TYPEINFO(QTextEngine::ItemDecoration, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QTextEngine::ItemDecoration, Q_RELOCATABLE_TYPE); struct QTextLineItemIterator { diff --git a/src/gui/text/qtextformat.cpp b/src/gui/text/qtextformat.cpp index 1da04b871a..985209473c 100644 --- a/src/gui/text/qtextformat.cpp +++ b/src/gui/text/qtextformat.cpp @@ -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 { diff --git a/src/gui/text/qtexthtmlparser_p.h b/src/gui/text/qtexthtmlparser_p.h index 2650c9cc3e..b99f73fafb 100644 --- a/src/gui/text/qtexthtmlparser_p.h +++ b/src/gui/text/qtexthtmlparser_p.h @@ -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 @@ -357,7 +357,7 @@ protected: 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 diff --git a/src/gui/text/qtextobject.h b/src/gui/text/qtextobject.h index c41893f37a..5402360baf 100644 --- a/src/gui/text/qtextobject.h +++ b/src/gui/text/qtextobject.h @@ -179,7 +179,7 @@ private: 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); } @@ -284,8 +284,8 @@ private: 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 @@ -320,7 +320,7 @@ private: int ne; }; -Q_DECLARE_TYPEINFO(QTextFragment, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QTextFragment, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/gui/text/qzip.cpp b/src/gui/text/qzip.cpp index 867e67698b..0f50a7508a 100644 --- a/src/gui/text/qzip.cpp +++ b/src/gui/text/qzip.cpp @@ -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 { diff --git a/src/gui/text/qzipreader_p.h b/src/gui/text/qzipreader_p.h index 0f695c74d5..add3a40087 100644 --- a/src/gui/text/qzipreader_p.h +++ b/src/gui/text/qzipreader_p.h @@ -118,7 +118,7 @@ private: 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 diff --git a/src/gui/util/qgridlayoutengine_p.h b/src/gui/util/qgridlayoutengine_p.h index 17b65b6220..341d159fb1 100644 --- a/src/gui/util/qgridlayoutengine_p.h +++ b/src/gui/util/qgridlayoutengine_p.h @@ -214,7 +214,7 @@ public: } } }; -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) diff --git a/src/gui/util/qshaderformat_p.h b/src/gui/util/qshaderformat_p.h index 3559c67414..e47fbb8a03 100644 --- a/src/gui/util/qshaderformat_p.h +++ b/src/gui/util/qshaderformat_p.h @@ -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 diff --git a/src/gui/util/qshadergenerator_p.h b/src/gui/util/qshadergenerator_p.h index 1f6f9d2532..4d3a09c92f 100644 --- a/src/gui/util/qshadergenerator_p.h +++ b/src/gui/util/qshadergenerator_p.h @@ -70,7 +70,7 @@ public: QShaderFormat format; }; -Q_DECLARE_TYPEINFO(QShaderGenerator, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QShaderGenerator, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/gui/util/qshadergraph_p.h b/src/gui/util/qshadergraph_p.h index 41ad22cedb..dbc5f3fab7 100644 --- a/src/gui/util/qshadergraph_p.h +++ b/src/gui/util/qshadergraph_p.h @@ -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 diff --git a/src/gui/util/qshadergraphloader_p.h b/src/gui/util/qshadergraphloader_p.h index e7aa19fa2d..bdd02799f7 100644 --- a/src/gui/util/qshadergraphloader_p.h +++ b/src/gui/util/qshadergraphloader_p.h @@ -89,7 +89,7 @@ private: QShaderGraph m_graph; }; -Q_DECLARE_TYPEINFO(QShaderGraphLoader, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QShaderGraphLoader, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/gui/util/qshadernode_p.h b/src/gui/util/qshadernode_p.h index 15382fe0b4..303a404165 100644 --- a/src/gui/util/qshadernode_p.h +++ b/src/gui/util/qshadernode_p.h @@ -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 diff --git a/src/gui/util/qshadernodeport_p.h b/src/gui/util/qshadernodeport_p.h index c69ba23a3f..e4e11f6826 100644 --- a/src/gui/util/qshadernodeport_p.h +++ b/src/gui/util/qshadernodeport_p.h @@ -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 diff --git a/src/gui/util/qshadernodesloader_p.h b/src/gui/util/qshadernodesloader_p.h index 432d7d4494..8afdd294ca 100644 --- a/src/gui/util/qshadernodesloader_p.h +++ b/src/gui/util/qshadernodesloader_p.h @@ -86,7 +86,7 @@ private: QHash m_nodes; }; -Q_DECLARE_TYPEINFO(QShaderNodesLoader, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QShaderNodesLoader, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/gui/util/qtexturefiledata_p.h b/src/gui/util/qtexturefiledata_p.h index 2df23de33c..fb732cd84c 100644 --- a/src/gui/util/qtexturefiledata_p.h +++ b/src/gui/util/qtexturefiledata_p.h @@ -106,7 +106,7 @@ private: QSharedDataPointer 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); diff --git a/src/gui/vulkan/qvulkaninstance.h b/src/gui/vulkan/qvulkaninstance.h index 618f8a9e40..58948854b4 100644 --- a/src/gui/vulkan/qvulkaninstance.h +++ b/src/gui/vulkan/qvulkaninstance.h @@ -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 { @@ -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 { diff --git a/src/network/access/qnetworkaccessauthenticationmanager_p.h b/src/network/access/qnetworkaccessauthenticationmanager_p.h index bf57dffbb0..340991c5ff 100644 --- a/src/network/access/qnetworkaccessauthenticationmanager_p.h +++ b/src/network/access/qnetworkaccessauthenticationmanager_p.h @@ -74,7 +74,7 @@ public: 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) diff --git a/src/network/access/qnetworkrequest_p.h b/src/network/access/qnetworkrequest_p.h index 5e18da6d55..4132e506d4 100644 --- a/src/network/access/qnetworkrequest_p.h +++ b/src/network/access/qnetworkrequest_p.h @@ -91,7 +91,7 @@ private: 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 diff --git a/src/network/ssl/qasn1element_p.h b/src/network/ssl/qasn1element_p.h index c0dfc9db7e..48fe45c9a5 100644 --- a/src/network/ssl/qasn1element_p.h +++ b/src/network/ssl/qasn1element_p.h @@ -175,7 +175,7 @@ private: 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; } diff --git a/src/plugins/generic/tuiotouch/qoscbundle_p.h b/src/plugins/generic/tuiotouch/qoscbundle_p.h index 5aee310017..66f93f4964 100644 --- a/src/plugins/generic/tuiotouch/qoscbundle_p.h +++ b/src/plugins/generic/tuiotouch/qoscbundle_p.h @@ -68,7 +68,7 @@ private: QList m_bundles; QList m_messages; }; -Q_DECLARE_TYPEINFO(QOscBundle, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QOscBundle, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/plugins/generic/tuiotouch/qoscmessage_p.h b/src/plugins/generic/tuiotouch/qoscmessage_p.h index f8738c4242..97660c4b5e 100644 --- a/src/plugins/generic/tuiotouch/qoscmessage_p.h +++ b/src/plugins/generic/tuiotouch/qoscmessage_p.h @@ -65,7 +65,7 @@ private: QByteArray m_addressPattern; QVariantList m_arguments; }; -Q_DECLARE_TYPEINFO(QOscMessage, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QOscMessage, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/plugins/generic/tuiotouch/qtuiocursor_p.h b/src/plugins/generic/tuiotouch/qtuiocursor_p.h index b8301bcf2c..504e514d14 100644 --- a/src/plugins/generic/tuiotouch/qtuiocursor_p.h +++ b/src/plugins/generic/tuiotouch/qtuiocursor_p.h @@ -102,7 +102,7 @@ private: 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 diff --git a/src/plugins/generic/tuiotouch/qtuiotoken_p.h b/src/plugins/generic/tuiotouch/qtuiotoken_p.h index 0c72436c4c..f449748a58 100644 --- a/src/plugins/generic/tuiotouch/qtuiotoken_p.h +++ b/src/plugins/generic/tuiotouch/qtuiotoken_p.h @@ -138,7 +138,7 @@ private: 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 diff --git a/src/plugins/platforminputcontexts/ibus/qibustypes.h b/src/plugins/platforminputcontexts/ibus/qibustypes.h index e6bff1ef81..ef2dcc341a 100644 --- a/src/plugins/platforminputcontexts/ibus/qibustypes.h +++ b/src/plugins/platforminputcontexts/ibus/qibustypes.h @@ -92,7 +92,7 @@ public: quint32 start; quint32 end; }; -Q_DECLARE_TYPEINFO(QIBusAttribute, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QIBusAttribute, Q_RELOCATABLE_TYPE); class QIBusAttributeList : private QIBusSerializable { @@ -106,7 +106,7 @@ public: QList attributes; }; -Q_DECLARE_TYPEINFO(QIBusAttributeList, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QIBusAttributeList, Q_RELOCATABLE_TYPE); class QIBusText : private QIBusSerializable { @@ -119,7 +119,7 @@ public: QString text; QIBusAttributeList attributes; }; -Q_DECLARE_TYPEINFO(QIBusText, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QIBusText, Q_RELOCATABLE_TYPE); class QIBusEngineDesc : private QIBusSerializable { @@ -147,7 +147,7 @@ public: 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; } diff --git a/src/plugins/platforms/xcb/qxcbconnection.h b/src/plugins/platforms/xcb/qxcbconnection.h index 77a9c9d934..67caf7d827 100644 --- a/src/plugins/platforms/xcb/qxcbconnection.h +++ b/src/plugins/platforms/xcb/qxcbconnection.h @@ -388,7 +388,7 @@ private: }; #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 diff --git a/src/plugins/platforms/xcb/qxcbdrag.h b/src/plugins/platforms/xcb/qxcbdrag.h index 257e82f049..0e17bdfc07 100644 --- a/src/plugins/platforms/xcb/qxcbdrag.h +++ b/src/plugins/platforms/xcb/qxcbdrag.h @@ -191,7 +191,7 @@ private: 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 diff --git a/src/testlib/qbenchmark_p.h b/src/testlib/qbenchmark_p.h index 93b5becb2b..32e77366e7 100644 --- a/src/testlib/qbenchmark_p.h +++ b/src/testlib/qbenchmark_p.h @@ -91,7 +91,7 @@ struct QBenchmarkContext QBenchmarkContext() = default; }; -Q_DECLARE_TYPEINFO(QBenchmarkContext, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QBenchmarkContext, Q_RELOCATABLE_TYPE); class QBenchmarkResult { @@ -121,7 +121,7 @@ public: 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. diff --git a/src/tools/moc/moc.h b/src/tools/moc/moc.h index 5ce057210f..889ee15652 100644 --- a/src/tools/moc/moc.h +++ b/src/tools/moc/moc.h @@ -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 @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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; @@ -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 { diff --git a/src/tools/moc/symbols.h b/src/tools/moc/symbols.h index dfc682f0bf..bbb1312cdc 100644 --- a/src/tools/moc/symbols.h +++ b/src/tools/moc/symbols.h @@ -118,7 +118,7 @@ struct Symbol #endif }; -Q_DECLARE_TYPEINFO(Symbol, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(Symbol, Q_RELOCATABLE_TYPE); typedef QList Symbols; @@ -128,7 +128,7 @@ struct SafeSymbols { QSet excludedSymbols; int index; }; -Q_DECLARE_TYPEINFO(SafeSymbols, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(SafeSymbols, Q_RELOCATABLE_TYPE); class SymbolStack : public QStack { diff --git a/src/tools/tracegen/provider.h b/src/tools/tracegen/provider.h index a62522adc7..99b10b13f1 100644 --- a/src/tools/tracegen/provider.h +++ b/src/tools/tracegen/provider.h @@ -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 diff --git a/src/tools/uic/cpp/cppwriteinitialization.h b/src/tools/uic/cpp/cppwriteinitialization.h index 784ef6fe3e..41eca9f0cb 100644 --- a/src/tools/uic/cpp/cppwriteinitialization.h +++ b/src/tools/uic/cpp/cppwriteinitialization.h @@ -325,7 +325,7 @@ private: } // namespace CPP -Q_DECLARE_TYPEINFO(CPP::WriteInitialization::Buddy, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(CPP::WriteInitialization::Buddy, Q_RELOCATABLE_TYPE); QT_END_NAMESPACE diff --git a/src/widgets/dialogs/qsidebar_p.h b/src/widgets/dialogs/qsidebar_p.h index 8708d07297..7f06f0b679 100644 --- a/src/widgets/dialogs/qsidebar_p.h +++ b/src/widgets/dialogs/qsidebar_p.h @@ -117,7 +117,7 @@ private: QList watching; QList invalidUrls; }; -Q_DECLARE_TYPEINFO(QUrlModel::WatchItem, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QUrlModel::WatchItem, Q_RELOCATABLE_TYPE); class Q_AUTOTEST_EXPORT QSidebar : public QListView { diff --git a/src/widgets/dialogs/qwizard.cpp b/src/widgets/dialogs/qwizard.cpp index 6c57a9a4af..3f73b8446f 100644 --- a/src/widgets/dialogs/qwizard.cpp +++ b/src/widgets/dialogs/qwizard.cpp @@ -179,7 +179,7 @@ public: 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 { @@ -199,7 +199,7 @@ public: 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) diff --git a/src/widgets/graphicsview/qgraphicsanchorlayout_p.h b/src/widgets/graphicsview/qgraphicsanchorlayout_p.h index 11b3ebd576..cfd6e3469f 100644 --- a/src/widgets/graphicsview/qgraphicsanchorlayout_p.h +++ b/src/widgets/graphicsview/qgraphicsanchorlayout_p.h @@ -335,7 +335,7 @@ public: } // namespace QtGraphicsAnchorLayout using namespace QtGraphicsAnchorLayout; -Q_DECLARE_TYPEINFO(GraphPath, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(GraphPath, Q_RELOCATABLE_TYPE); class QGraphicsAnchorLayoutPrivate; /*! diff --git a/src/widgets/graphicsview/qgraphicsitem_p.h b/src/widgets/graphicsview/qgraphicsitem_p.h index 7264c62b3c..3827bc965e 100644 --- a/src/widgets/graphicsview/qgraphicsitem_p.h +++ b/src/widgets/graphicsview/qgraphicsitem_p.h @@ -523,7 +523,7 @@ public: int globalStackingOrder; QGraphicsItem *q_ptr; }; -Q_DECLARE_TYPEINFO(QGraphicsItemPrivate::ExtraStruct, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QGraphicsItemPrivate::ExtraStruct, Q_RELOCATABLE_TYPE); struct QGraphicsItemPrivate::TransformData { diff --git a/src/widgets/itemviews/qdatawidgetmapper.cpp b/src/widgets/itemviews/qdatawidgetmapper.cpp index 0f6e36cc6a..19e216789c 100644 --- a/src/widgets/itemviews/qdatawidgetmapper.cpp +++ b/src/widgets/itemviews/qdatawidgetmapper.cpp @@ -124,7 +124,7 @@ public: std::vector widgetMap; }; -Q_DECLARE_TYPEINFO(QDataWidgetMapperPrivate::WidgetMapper, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QDataWidgetMapperPrivate::WidgetMapper, Q_RELOCATABLE_TYPE); int QDataWidgetMapperPrivate::findWidget(QWidget *w) const { diff --git a/src/widgets/itemviews/qheaderview_p.h b/src/widgets/itemviews/qheaderview_p.h index 59879e0838..ecbcd6e5e4 100644 --- a/src/widgets/itemviews/qheaderview_p.h +++ b/src/widgets/itemviews/qheaderview_p.h @@ -388,7 +388,7 @@ public: }; 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 diff --git a/src/widgets/itemviews/qtableview_p.h b/src/widgets/itemviews/qtableview_p.h index 2514ee7c33..2b110f18a0 100644 --- a/src/widgets/itemviews/qtableview_p.h +++ b/src/widgets/itemviews/qtableview_p.h @@ -127,7 +127,7 @@ private: 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 diff --git a/src/widgets/itemviews/qtreeview_p.h b/src/widgets/itemviews/qtreeview_p.h index e9c64d4054..57ec3caed0 100644 --- a/src/widgets/itemviews/qtreeview_p.h +++ b/src/widgets/itemviews/qtreeview_p.h @@ -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 { diff --git a/src/widgets/itemviews/qwidgetitemdata_p.h b/src/widgets/itemviews/qwidgetitemdata_p.h index b7ed6ed862..fc0ca75d18 100644 --- a/src/widgets/itemviews/qwidgetitemdata_p.h +++ b/src/widgets/itemviews/qwidgetitemdata_p.h @@ -65,7 +65,7 @@ public: 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 diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp index bbfee0c662..142366d2e3 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -640,7 +640,7 @@ public: int clipset; QPainterPath clipPath; }; -Q_DECLARE_TYPEINFO(QRenderRule, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QRenderRule, Q_RELOCATABLE_TYPE); /////////////////////////////////////////////////////////////////////////////////////////// static const char knownStyleHints[][45] = { diff --git a/src/widgets/widgets/qtextbrowser.cpp b/src/widgets/widgets/qtextbrowser.cpp index 753655909c..99ebaa93bf 100644 --- a/src/widgets/widgets/qtextbrowser.cpp +++ b/src/widgets/widgets/qtextbrowser.cpp @@ -154,7 +154,7 @@ public: 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 { diff --git a/src/widgets/widgets/qtoolbararealayout_p.h b/src/widgets/widgets/qtoolbararealayout_p.h index 336b746144..d47597d224 100644 --- a/src/widgets/widgets/qtoolbararealayout_p.h +++ b/src/widgets/widgets/qtoolbararealayout_p.h @@ -126,7 +126,7 @@ public: QList toolBarItems; }; -Q_DECLARE_TYPEINFO(QToolBarAreaLayoutLine, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QToolBarAreaLayoutLine, Q_RELOCATABLE_TYPE); class QToolBarAreaLayoutInfo { @@ -157,7 +157,7 @@ public: QInternal::DockPosition dockPos; bool dirty; }; -Q_DECLARE_TYPEINFO(QToolBarAreaLayoutInfo, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QToolBarAreaLayoutInfo, Q_RELOCATABLE_TYPE); class QToolBarAreaLayout { -- cgit v1.2.3