diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-21 12:24:40 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-25 17:13:20 -0800 |
commit | e55c740d84cd11813e6d7e5bf7aa0a2f5f9a6784 (patch) | |
tree | 68e15aafdb111f679054e9a0f87a8967c8c27e6e /tests | |
parent | ff18de053f338d0f100e7994db6ef5a2cac6280a (diff) | |
download | subsurface-e55c740d84cd11813e6d7e5bf7aa0a2f5f9a6784.tar.gz |
diveplanner: call planner model directly for simple variables.
Variables without conversion, do not need to pass plannerShared
(due to the QML interface).
Simple variables do not pass plannerShared, but diveplanner
in desktop-widgets and qmlinterface in mobile-widgets call the
implementation directly.
Signed-off-by: jan Iversen <jan@casacondor.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testplannershared.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/testplannershared.cpp b/tests/testplannershared.cpp index f4c4546ee..3131590c5 100644 --- a/tests/testplannershared.cpp +++ b/tests/testplannershared.cpp @@ -87,15 +87,6 @@ void TestPlannerShared::test_gas() qPrefDivePlanner::set_sacfactor(200); QCOMPARE(plannerShared::sacfactor(), 2.0); - plannerShared::set_problemsolvingtime(4); - QCOMPARE(qPrefDivePlanner::problemsolvingtime(), 4); - plannerShared::set_problemsolvingtime(5); - QCOMPARE(qPrefDivePlanner::problemsolvingtime(), 5); - qPrefDivePlanner::set_problemsolvingtime(2); - QCOMPARE(plannerShared::problemsolvingtime(), 2); - qPrefDivePlanner::set_problemsolvingtime(6); - QCOMPARE(plannerShared::problemsolvingtime(), 6); - // Set system to use meters qPrefUnits::set_unit_system(METRIC); |