Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxnavigatoreventhandler.cpp
Go to the documentation of this file.
1// Copyright (C) 2012 Research In Motion
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
6
8#include "qqnxscreen.h"
9
10#include <QDebug>
11#include <QGuiApplication>
12#include <qpa/qwindowsysteminterface.h>
13
14Q_LOGGING_CATEGORY(lcQpaQnxNavigatorEvents, "qt.qpa.qnx.navigator.events");
15
16QT_BEGIN_NAMESPACE
17
18QQnxNavigatorEventHandler::QQnxNavigatorEventHandler(QObject *parent)
19 : QObject(parent)
20{
21}
22
24{
25 // reply to navigator that (any) orientation is acceptable
26 // TODO: check if top window flags prohibit orientation change
27 qCDebug(lcQpaQnxNavigatorEvents, "angle=%d", angle);
28 return true;
29}
30
32{
33 // update screen geometry and reply to navigator that we're ready
34 qCDebug(lcQpaQnxNavigatorEvents, "angle=%d", angle);
35 emit rotationChanged(angle);
36}
37
39{
40 qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO;
41
42 Q_EMIT swipeDown();
43}
44
46{
47 // shutdown everything
48 qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO;
49 QCoreApplication::quit();
50}
51
53{
54 qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO << id;
55 Q_EMIT windowGroupActivated(id);
56}
57
59{
60 qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO << id;
61 Q_EMIT windowGroupDeactivated(id);
62}
63
64void QQnxNavigatorEventHandler::handleWindowGroupStateChanged(const QByteArray &id, Qt::WindowState state)
65{
66 qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO << id;
67 Q_EMIT windowGroupStateChanged(id, state);
68}
69
70QT_END_NAMESPACE
void handleWindowGroupStateChanged(const QByteArray &id, Qt::WindowState state)
void handleWindowGroupActivated(const QByteArray &id)
void handleWindowGroupDeactivated(const QByteArray &id)
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")