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
5
7#include "qqnxscreen.h"
8
9#include <QDebug>
10#include <QGuiApplication>
11#include <qpa/qwindowsysteminterface.h>
12
13Q_LOGGING_CATEGORY(lcQpaQnxNavigatorEvents, "qt.qpa.qnx.navigator.events");
14
15QT_BEGIN_NAMESPACE
16
17QQnxNavigatorEventHandler::QQnxNavigatorEventHandler(QObject *parent)
18 : QObject(parent)
19{
20}
21
23{
24 // reply to navigator that (any) orientation is acceptable
25 // TODO: check if top window flags prohibit orientation change
26 qCDebug(lcQpaQnxNavigatorEvents, "angle=%d", angle);
27 return true;
28}
29
31{
32 // update screen geometry and reply to navigator that we're ready
33 qCDebug(lcQpaQnxNavigatorEvents, "angle=%d", angle);
34 emit rotationChanged(angle);
35}
36
38{
39 qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO;
40
41 Q_EMIT swipeDown();
42}
43
45{
46 // shutdown everything
47 qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO;
48 QCoreApplication::quit();
49}
50
52{
53 qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO << id;
54 Q_EMIT windowGroupActivated(id);
55}
56
58{
59 qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO << id;
60 Q_EMIT windowGroupDeactivated(id);
61}
62
63void QQnxNavigatorEventHandler::handleWindowGroupStateChanged(const QByteArray &id, Qt::WindowState state)
64{
65 qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO << id;
66 Q_EMIT windowGroupStateChanged(id, state);
67}
68
69QT_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")