diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-06-09 12:13:46 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-06-09 18:01:51 +0200 |
commit | 46da276d48bd79b1f84459addbcb334bc661c6a0 (patch) | |
tree | 274f6d307e0149686eb91217c01c1ed9d1f74ad4 /src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp | |
parent | 15a853b5447446cbbe18933932dd9228237dcc74 (diff) |
Replace Q_DECLARE_METATYPE with QT_DECL_METATYPE_EXTERN
This reduces compilation time by avoiding repeated metatype
instantiations.
Can't backport to Qt 6.3 or 6.2 because this change introduces new
exported symbols.
Pick-to: 6.4
Fixes: QTBUG-102219
Change-Id: Ice0f606bdcfa283b8eb89c57c4b06650d3f88928
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp')
-rw-r--r-- | src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp b/src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp index bf13b36..50ab6fc 100644 --- a/src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp +++ b/src/remoteobjects/qremoteobjectabstractitemmodelreplica.cpp @@ -48,6 +48,15 @@ QT_BEGIN_NAMESPACE +QT_IMPL_METATYPE_EXTERN_TAGGED(QtPrivate::ModelIndex, QtPrivate__ModelIndex) +QT_IMPL_METATYPE_EXTERN_TAGGED(QtPrivate::IndexList, QtPrivate__IndexList) +QT_IMPL_METATYPE_EXTERN_TAGGED(QtPrivate::DataEntries, QtPrivate__DataEntries) +QT_IMPL_METATYPE_EXTERN_TAGGED(QtPrivate::MetaAndDataEntries, QtPrivate__MetaAndDataEntries) +QT_IMPL_METATYPE_EXTERN_TAGGED(QtPrivate::IndexValuePair, QtPrivate__IndexValuePair) +QT_IMPL_METATYPE_EXTERN_TAGGED(Qt::Orientation, Qt__Orientation) +QT_IMPL_METATYPE_EXTERN_TAGGED(QItemSelectionModel::SelectionFlags, + QItemSelectionModel__SelectionFlags) + inline QDebug operator<<(QDebug stream, const RequestedData &data) { return stream.nospace() << "RequestedData[start=" << data.start << ", end=" << data.end << ", roles=" << data.roles << "]"; |