aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testqml.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-05 22:34:04 +0200
committerGravatar jan Iversen <jani@apache.org>2018-07-12 18:44:31 +0200
commit8f7f1cacd60f150f5d2520d3c9c47d31322fd4c1 (patch)
tree1d498700825dcd70378354ac633b8bbceb515a03 /tests/testqml.cpp
parent928fc1ee79a4391384f448cb75369ddb5e03ef28 (diff)
downloadsubsurface-8f7f1cacd60f150f5d2520d3c9c47d31322fd4c1.tar.gz
tests: make qprefdisplay test file
Remove display tests from testpreferences and make a new file Signed-off-by: Jan Iversen <jani@apache.org>
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) {