summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2022-09-29 17:53:56 +0300
committerJuha Vuolle <juha.vuolle@insta.fi>2022-10-04 08:11:45 +0300
commit7a94c109e6805b35150522b6714f04e63d751888 (patch)
tree4ce31ad1feb0de16bda4c591ad18c165db833b1d /tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp
parentd5d24fd5fe095337063891204e4fee4c6914b165 (diff)
Remove disabled sensor gesture code
Support for sensor gestures in their then-current form was removed in Qt 6 (QTBUG-95747). This commit removes the disabled code. This is to avoid distraction when keeping the repository up-to-date with rest of Qt. The gestures may be reintroduced in some shape or form in the future (QTBUG-97066). For those reference purposes the old code can be found in the git history. Fixes: QTBUG-107065 Change-Id: If2c50171f84d483dde55600422d138d550124bdc Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp')
-rw-r--r--tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp68
1 files changed, 0 insertions, 68 deletions
diff --git a/tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp b/tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp
deleted file mode 100644
index d99cc4bb..00000000
--- a/tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-
-#include <QStringList>
-#include <QTimer>
-
-#include "qtestrecognizer.h"
-#include "qtestsensorgestureplugin_p.h"
-
-
-QTestRecognizer::QTestRecognizer(QObject *parent)
- : QSensorGestureRecognizer(parent),
- active(0)
-{
- timeout();
-}
-
-QTestRecognizer::~QTestRecognizer()
-{
-}
-
-void QTestRecognizer::timeout()
-{
- Q_EMIT detected("tested");
- Q_EMIT tested();
- QTimer::singleShot(100, this, SLOT(timeout()));
-}
-
-
-bool QTestRecognizer::start()
-{
- Q_EMIT detected("tested");
- Q_EMIT tested();
- active = true;
- return true;
-}
-
-bool QTestRecognizer::stop()
-{
- active = false;
- return true;
-}
-
-bool QTestRecognizer::isActive()
-{
- return active;
-}
-
-void QTestRecognizer::create()
-{
- active = false;
-}
-
-QString QTestRecognizer::id() const
-{
- return QString("QtSensors.test");
-}
-
-
-int QTestRecognizer::thresholdTime() const
-{
- return timerTimeout;
-}
-
-void QTestRecognizer::setThresholdTime(int msec)
-{
- timer->setInterval(msec);
-}