summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-19 12:25:17 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-20 09:49:49 -0800
commit13b2b9f19c3f9ecb41565c5eab07d590071dede6 (patch)
treef937ac09e6862b2dceec2b12cb25e8b9e8764054 /tests
parent75fe59b0da4d15c2e63c070f6f561805af86e5d9 (diff)
downloadsubsurface-13b2b9f19c3f9ecb41565c5eab07d590071dede6.tar.gz
core/settings: allow signals to be strongly typed in C++
Register enums to allow them to be used in signal handlers instead of int. Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/testqPrefUnits.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testqPrefUnits.cpp b/tests/testqPrefUnits.cpp
index b2ead5c9e..c5635732b 100644
--- a/tests/testqPrefUnits.cpp
+++ b/tests/testqPrefUnits.cpp
@@ -3,6 +3,7 @@
#include "core/pref.h"
#include "core/qthelper.h"
+#include "core/settings/qPref.h"
#include "core/settings/qPrefUnit.h"
#include <QTest>
@@ -13,6 +14,7 @@ void TestQPrefUnits::initTestCase()
QCoreApplication::setOrganizationName("Subsurface");
QCoreApplication::setOrganizationDomain("subsurface.hohndel.org");
QCoreApplication::setApplicationName("SubsurfaceTestQPrefUnits");
+ qPref::registerQML(NULL);
}
void TestQPrefUnits::test_struct_get()