aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/pointer/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/pointer/main.cpp')
-rw-r--r--tests/manual/pointer/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/manual/pointer/main.cpp b/tests/manual/pointer/main.cpp
index 97d8422b69..43ad182a76 100644
--- a/tests/manual/pointer/main.cpp
+++ b/tests/manual/pointer/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2018 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the manual tests of the Qt Toolkit.
@@ -29,14 +29,18 @@
#include <QQmlApplicationEngine>
#include <QQuickItem>
#include <QQuickWindow>
+#include "inputinspector.h"
int main(int argc, char *argv[])
{
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
+ qmlRegisterType<InputInspector>("org.qtproject.Test", 1, 0, "InputInspector");
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
+ if (engine.rootObjects().isEmpty())
+ return -1;
if (!app.arguments().isEmpty()) {
QQuickWindow * win = static_cast<QQuickWindow *>(engine.rootObjects().first());
auto lastArg = app.arguments().last();