summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@theqtcompany.com>2016-01-13 11:49:21 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2016-01-13 12:14:20 +0000
commitdc0d918d3e3c98d56f6091d26d998f8e8cef5211 (patch)
treeac0eb79c92dd25c20a525b8e3e671f20f5020cbc /tests
parent6454144f9c01cd595f4fce15167a1b82a5aec2ea (diff)
Fix warning about missing meta-type registration.
Change-Id: I210debb0bd8133dcba1f9dc61ac1eb78032d53d0 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qmodbusreply/tst_qmodbusreply.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qmodbusreply/tst_qmodbusreply.cpp b/tests/auto/qmodbusreply/tst_qmodbusreply.cpp
index 24b2a98..8d789b0 100644
--- a/tests/auto/qmodbusreply/tst_qmodbusreply.cpp
+++ b/tests/auto/qmodbusreply/tst_qmodbusreply.cpp
@@ -42,6 +42,7 @@ class tst_QModbusReply : public QObject
Q_OBJECT
private slots:
+ void initTestCase();
void tst_ctor();
void tst_setFinished();
void tst_setError_data();
@@ -49,6 +50,11 @@ private slots:
void tst_setResult();
};
+void tst_QModbusReply::initTestCase()
+{
+ qRegisterMetaType<QModbusDevice::Error>();
+}
+
void tst_QModbusReply::tst_ctor()
{
QModbusReply r(QModbusReply::Common, 1, this);