Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
5
#
include
"qqnxnavigatoreventhandler.h"
6
7
#
include
"qqnxintegration.h"
8
#
include
"qqnxscreen.h"
9
10
#
include
<
QDebug
>
11
#
include
<
QGuiApplication
>
12
#
include
<
qpa
/
qwindowsysteminterface
.
h
>
13
14
Q_LOGGING_CATEGORY
(lcQpaQnxNavigatorEvents,
"qt.qpa.qnx.navigator.events"
);
15
16
QT_BEGIN_NAMESPACE
17
18
QQnxNavigatorEventHandler::QQnxNavigatorEventHandler(QObject *parent)
19
: QObject(parent)
20
{
21
}
22
23
bool
QQnxNavigatorEventHandler
::
handleOrientationCheck
(
int
angle)
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
31
void
QQnxNavigatorEventHandler
::
handleOrientationChange
(
int
angle)
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
38
void
QQnxNavigatorEventHandler
::
handleSwipeDown
()
39
{
40
qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO;
41
42
Q_EMIT swipeDown();
43
}
44
45
void
QQnxNavigatorEventHandler
::
handleExit
()
46
{
47
// shutdown everything
48
qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO;
49
QCoreApplication::quit();
50
}
51
52
void
QQnxNavigatorEventHandler
::
handleWindowGroupActivated
(
const
QByteArray &id)
53
{
54
qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO << id;
55
Q_EMIT windowGroupActivated(id);
56
}
57
58
void
QQnxNavigatorEventHandler
::
handleWindowGroupDeactivated
(
const
QByteArray &id)
59
{
60
qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO << id;
61
Q_EMIT windowGroupDeactivated(id);
62
}
63
64
void
QQnxNavigatorEventHandler
::
handleWindowGroupStateChanged
(
const
QByteArray &id, Qt::WindowState state)
65
{
66
qCDebug(lcQpaQnxNavigatorEvents) << Q_FUNC_INFO << id;
67
Q_EMIT windowGroupStateChanged(id, state);
68
}
69
70
QT_END_NAMESPACE
QQnxNavigatorEventHandler
Definition
qqnxnavigatoreventhandler.h:16
QQnxNavigatorEventHandler::handleSwipeDown
void handleSwipeDown()
Definition
qqnxnavigatoreventhandler.cpp:38
QQnxNavigatorEventHandler::handleExit
void handleExit()
Definition
qqnxnavigatoreventhandler.cpp:45
QQnxNavigatorEventHandler::handleWindowGroupStateChanged
void handleWindowGroupStateChanged(const QByteArray &id, Qt::WindowState state)
Definition
qqnxnavigatoreventhandler.cpp:64
QQnxNavigatorEventHandler::handleWindowGroupActivated
void handleWindowGroupActivated(const QByteArray &id)
Definition
qqnxnavigatoreventhandler.cpp:52
QQnxNavigatorEventHandler::handleWindowGroupDeactivated
void handleWindowGroupDeactivated(const QByteArray &id)
Definition
qqnxnavigatoreventhandler.cpp:58
QQnxNavigatorEventHandler::handleOrientationChange
void handleOrientationChange(int angle)
Definition
qqnxnavigatoreventhandler.cpp:31
QQnxNavigatorEventHandler::handleOrientationCheck
bool handleOrientationCheck(int angle)
Definition
qqnxnavigatoreventhandler.cpp:23
Q_LOGGING_CATEGORY
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
qtbase
src
plugins
platforms
qnx
qqnxnavigatoreventhandler.cpp
Generated on
for Qt by
1.18.0