aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/pointer/main.cpp
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@qt.io>2017-06-23 13:34:27 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2018-03-02 11:23:28 +0000
commit440a15c52d979cc0221217480720978d55935c0d (patch)
tree23401b5ee15ea84bdbb0d54971a81f08a46d6ffb /tests/manual/pointer/main.cpp
parente29adf1580e1845fc3ee26d5aea746410c0bec1a (diff)
Manual test: combinations of DragHandler and TapHandler on Flickable
We already had a manual test using a slider, but that has only one combination of DragHandler and TapHandler. This test aims to test all possible combinations of DragHandler and TapHandler together (as siblings, in different parts of the hierarcy, with a Flickable beneath...) We also show the current grabbers as an overlay over this entire collection of manual tests. Change-Id: Ic634d36d14f7456170f43b077fa72b03fb65bc18 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
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();