aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/qmltypesregister.cpp
diff options
context:
space:
mode:
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
}