summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothuuid.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2014-11-07 11:55:39 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2014-11-10 08:38:25 +0100
commitf1372ef9a1c4ad5bb7c7bbd94116ec1203fc4243 (patch)
tree67df3bae06e9c33af2dc57a4be31c13166e53689 /src/bluetooth/qbluetoothuuid.cpp
parent9277a04640e488916b79a0dcbf818c7f1aa1510d (diff)
Permanently register QBluetoothUuid with Qt Meta type system
Change-Id: I7010e36d6abed116dbf0a941109d61208d901951 Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qbluetoothuuid.cpp')
-rw-r--r--src/bluetooth/qbluetoothuuid.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothuuid.cpp b/src/bluetooth/qbluetoothuuid.cpp
index 61798b03..3883b47b 100644
--- a/src/bluetooth/qbluetoothuuid.cpp
+++ b/src/bluetooth/qbluetoothuuid.cpp
@@ -395,6 +395,18 @@ Q_GLOBAL_STATIC_WITH_ARGS(QUuid, baseUuid, ("{00000000-0000-1000-8000-00805F9B34
\value UnknownDescriptorType The descriptor type is unknown.
*/
+namespace
+{
+ class BtUuidRegisterMetaTypes
+ {
+ public:
+ BtUuidRegisterMetaTypes()
+ {
+ qRegisterMetaType<QBluetoothUuid>();
+ }
+ } _registerBtUuidMetaTypes;
+}
+
/*!
Constructs a new null Bluetooth UUID.
*/