diff options
| author | 2018-04-10 22:24:37 +0200 | |
|---|---|---|
| committer | 2018-04-22 18:13:39 +0200 | |
| commit | 4fa76667c4e7f31ed6b28eb43ad277ac448e0e71 (patch) | |
| tree | e1d1c6cf63387710f2f2771ece577d816c8f6e4f /qmltypesregister.cpp | |
| parent | 5ee9827692939c196a972b48af1f2abd721da275 (diff) | |
| download | OneRoll-4fa76667c4e7f31ed6b28eb43ad277ac448e0e71.tar.gz OneRoll-4fa76667c4e7f31ed6b28eb43ad277ac448e0e71.zip | |
-Remove dependency when unittest.
Diffstat (limited to 'qmltypesregister.cpp')
| -rw-r--r-- | qmltypesregister.cpp | 5 |
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 } |