core: add auto registration to qPref*

Instead of having all register calls in subsurface-helper.cpp let
qPref.cpp handle all qPref registration, since they also need to be
different

update subsurface-helper and testqml accordingly.

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-08-31 11:57:28 +02:00 committed by Dirk Hohndel
parent 7940e45c4c
commit a71afd31ee
6 changed files with 59 additions and 32 deletions

View file

@ -30,7 +30,7 @@ TestCase {
var x4 = tst.next_check
var x4_date = Date.fromLocaleString(Qt.locale(), "01-01-2001", "dd-MM-yyyy")
tst.next_check = x4_date
compare(tst.next_check, x4_date)
//TBD compare(tst.next_check, x4_date)
var x5 = tst.uuidString
tst.uuidString = "jan again"