summaryrefslogtreecommitdiffstats
path: root/tests/testqml.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-14 08:14:31 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-14 08:14:31 -0700
commite834874a7a6f8e37fade28bf20640b8d0815373b (patch)
tree6a04abcf9c36a2a1cbd557af11eed0df379d0263 /tests/testqml.cpp
parentcf329ca13100f3b8947c33c8e0a7f4a9cedd5e2b (diff)
parentaa0a918082dced90eb608ba44f39028bfe9ad0c1 (diff)
downloadsubsurface-e834874a7a6f8e37fade28bf20640b8d0815373b.tar.gz
Merge branch 'qPrefDisplay' of https://github.com/janiversen/subsurface
Diffstat (limited to 'tests/testqml.cpp')
-rw-r--r--tests/testqml.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/testqml.cpp b/tests/testqml.cpp
index 8ba04da90..0b75d8d48 100644
--- a/tests/testqml.cpp
+++ b/tests/testqml.cpp
@@ -4,6 +4,7 @@
#include <QtTest>
#include <QQmlEngine>
#include <QQmlContext>
+#include <QApplication>
#include "core/settings/qPref.h"
#include "core/qt-gui.h"
@@ -18,8 +19,12 @@ int main(int argc, char **argv)
QTEST_ADD_GPU_BLACKLIST_SUPPORT
QTEST_SET_MAIN_SOURCE_PATH
- // check that qPref exists
- new qPref;
+ // check that qPref classes exists
+ qPref::instance();
+ qPrefDisplay::instance();
+
+ // prepare Qt application
+ new QApplication(argc, argv);
// check that we have a directory
if (argc < 2) {