summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2014-11-13 11:36:14 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2014-11-13 14:32:21 +0100
commitcc94fad463e50f0f4ec110bacc098f4c4d4818d8 (patch)
tree0605b29ea951bd5d898a6bb2adcf6c782d49bfc3 /tests
parente63351bbfd48070c6e7bd373c7f8804ffc32ce3b (diff)
Fix test warning about missing meta type registration
Change-Id: I79970d1f460e2384b459a967405c849b5c0aae03 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com> Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qlowenergycharacteristic/tst_qlowenergycharacteristic.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qlowenergycharacteristic/tst_qlowenergycharacteristic.cpp b/tests/auto/qlowenergycharacteristic/tst_qlowenergycharacteristic.cpp
index c7ce3a06..8b720f62 100644
--- a/tests/auto/qlowenergycharacteristic/tst_qlowenergycharacteristic.cpp
+++ b/tests/auto/qlowenergycharacteristic/tst_qlowenergycharacteristic.cpp
@@ -42,6 +42,8 @@
#include <QLowEnergyController>
#include <QBluetoothLocalDevice>
+Q_DECLARE_METATYPE(QBluetoothDeviceDiscoveryAgent::Error)
+
QT_USE_NAMESPACE
// This define must be set if the platform provides access to GATT handles
@@ -82,6 +84,7 @@ tst_QLowEnergyCharacteristic::tst_QLowEnergyCharacteristic() :
globalControl(0), globalService(0)
{
QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true"));
+ qRegisterMetaType<QBluetoothDeviceDiscoveryAgent::Error>();
}
tst_QLowEnergyCharacteristic::~tst_QLowEnergyCharacteristic()