aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/qmltypesregister.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2018-04-10 22:24:37 +0200
committerRenaud G <renaud@rolisteam.org>2018-04-22 18:13:39 +0200
commit4fa76667c4e7f31ed6b28eb43ad277ac448e0e71 (patch)
treee1d1c6cf63387710f2f2771ece577d816c8f6e4f /qmltypesregister.cpp
parent5ee9827692939c196a972b48af1f2abd721da275 (diff)
downloadOneRoll-4fa76667c4e7f31ed6b28eb43ad277ac448e0e71.tar.gz
OneRoll-4fa76667c4e7f31ed6b28eb43ad277ac448e0e71.zip
-Remove dependency when unittest.
Diffstat (limited to 'qmltypesregister.cpp')
-rw-r--r--qmltypesregister.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qmltypesregister.cpp b/qmltypesregister.cpp
index f256eb2..5c6b6ab 100644
--- a/qmltypesregister.cpp
+++ b/qmltypesregister.cpp
@@ -22,11 +22,14 @@
#include <QQmlEngine>
#include "diceroller.h"
+#ifndef UNIT_TEST
#include "field.h"
-
+#endif
void registerQmlTypes()
{
qmlRegisterType<DiceRoller>("Rolisteam", 1, 0, "DiceRoller");
+ #ifndef UNIT_TEST
qmlRegisterType<Field>("Rolisteam", 1, 0, "Field");
+ #endif
}