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
qqnxglobal.cpp
Go to the documentation of this file.
1
// Copyright (C) 2011 - 2014 BlackBerry Limited. All rights reserved.
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
#
include
<
errno
.
h
>
5
6
#
include
<
QDebug
>
7
#
include
"qqnxglobal.h"
8
#
include
"qqnxintegration.h"
9
10
QT_BEGIN_NAMESPACE
11
12
Q_LOGGING_CATEGORY(lcQpaQnx,
"qt.qpa.qnx"
);
13
14
void
qScreenCheckError
(
int
rc,
const
char
*funcInfo,
const
char
*message,
bool
critical)
15
{
16
if
(!rc && (
QQnxIntegration
::
instance
(
)
->options() &
QQnxIntegration
::
AlwaysFlushScreenContext
)
17
&&
QQnxIntegration
::
instance
(
)
->screenContext() != 0) {
18
rc = screen_flush_context(
QQnxIntegration
::
instance
(
)
->screenContext(), 0);
19
}
20
21
if
(Q_UNLIKELY(rc)) {
22
qCDebug(lcQpaQnx,
"%s - Screen: %s - Error: %s (%i)"
, funcInfo, message, strerror(errno), errno);
23
24
if
(Q_UNLIKELY(critical))
25
qCritical(
"%s - Screen: %s - Error: %s (%i)"
, funcInfo, message, strerror(errno), errno);
26
else
27
qWarning(
"%s - Screen: %s - Error: %s (%i)"
, funcInfo, message, strerror(errno), errno);
28
}
29
}
30
31
QT_END_NAMESPACE
QQnxIntegration
Definition
qqnxintegration.h:47
QQnxIntegration::AlwaysFlushScreenContext
@ AlwaysFlushScreenContext
Definition
qqnxintegration.h:53
QQnxIntegration::instance
static QQnxIntegration * instance()
Definition
qqnxintegration.h:61
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qScreenCheckError
void qScreenCheckError(int rc, const char *funcInfo, const char *message, bool critical)
Definition
qqnxglobal.cpp:14
qtbase
src
plugins
platforms
qnx
qqnxglobal.cpp
Generated on
for Qt by
1.18.0