diff options
Diffstat (limited to 'tests/testqml.cpp')
-rw-r--r-- | tests/testqml.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testqml.cpp b/tests/testqml.cpp index fcea8dfb1..2c354a536 100644 --- a/tests/testqml.cpp +++ b/tests/testqml.cpp @@ -15,7 +15,7 @@ int main(int argc, char **argv) QMLTestSetup setup; // register C++ types and classes (but not objects) - qPref::instance()->registerQML(NULL); + qPref::registerQML(NULL); return quick_test_main_with_setup(argc, argv, "TestQML", nullptr, &setup); #endif //QT_VERSION @@ -24,6 +24,6 @@ int main(int argc, char **argv) void QMLTestSetup::qmlEngineAvailable(QQmlEngine *engine) { // register C++ objects (but not types and classes) - qPref::instance()->registerQML(engine); + qPref::registerQML(engine); }; |