summaryrefslogtreecommitdiffstats
path: root/tests/testqml.cpp
diff options
context:
space:
mode:
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) {