diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2022-04-06 17:29:41 +0200 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2022-04-27 13:18:21 +0200 |
commit | 6fd8436dd6785529fbab21e27a56e951c45901d1 (patch) | |
tree | eeb82d5d284bfb959662d2221b9fe2cd17a29a1b /src/bluetooth/qlowenergycontroller.cpp | |
parent | 358d1431bf0c53165a319efb2cb1b747c9b1e1f0 (diff) |
Replace Q_DECLARE_METATYPE with QT_DECL_METATYPE_EXTERN
This reduces compilation time by avoiding repeated metatype
instantiations.
Can't pick to 6.3 or 6.2, because this introduces new exported
symbols.
As a drive-by: added missing QT_BEGIN/END_NAMESPACE macros
Fixes: QTBUG-102215
Change-Id: If76d768b9565a43071dc73a8e738269048db86cb
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller.cpp')
-rw-r--r-- | src/bluetooth/qlowenergycontroller.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller.cpp b/src/bluetooth/qlowenergycontroller.cpp index ff000f80..db3d390a 100644 --- a/src/bluetooth/qlowenergycontroller.cpp +++ b/src/bluetooth/qlowenergycontroller.cpp @@ -68,6 +68,13 @@ QT_BEGIN_NAMESPACE +QT_IMPL_METATYPE_EXTERN_TAGGED(QLowEnergyController::Error, QLowEnergyController__Error) +QT_IMPL_METATYPE_EXTERN_TAGGED(QLowEnergyController::ControllerState, + QLowEnergyController__ControllerState) +QT_IMPL_METATYPE_EXTERN_TAGGED(QLowEnergyController::RemoteAddressType, + QLowEnergyController__RemoteAddressType) +QT_IMPL_METATYPE_EXTERN_TAGGED(QLowEnergyController::Role, QLowEnergyController__Role) + Q_DECLARE_LOGGING_CATEGORY(QT_BT) #if defined(QT_ANDROID_BLUETOOTH) Q_DECLARE_LOGGING_CATEGORY(QT_BT_ANDROID) |