From 13b2b9f19c3f9ecb41565c5eab07d590071dede6 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sun, 19 Jan 2020 12:25:17 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- tests/testqPrefUnits.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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 @@ -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() -- cgit v1.2.3-70-g09d2