Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
#include <errno.h>
4
5
#include <QDebug>
6
#include "
qqnxintegration.h
"
7
8
QT_BEGIN_NAMESPACE
9
10
void
qScreenCheckError
(
int
rc,
const
char
*funcInfo,
const
char
*
message
,
bool
critical)
11
{
12
if
(!rc && (
QQnxIntegration::instance
()->options() &
QQnxIntegration::AlwaysFlushScreenContext
)
13
&&
QQnxIntegration::instance
()->screenContext() != 0) {
14
rc = screen_flush_context(
QQnxIntegration::instance
()->screenContext(), 0);
15
}
16
17
if
(
Q_UNLIKELY
(rc)) {
18
qCDebug
(lcQpaQnx,
"%s - Screen: %s - Error: %s (%i)"
, funcInfo,
message
, strerror(errno), errno);
19
20
if
(
Q_UNLIKELY
(critical))
21
qCritical
(
"%s - Screen: %s - Error: %s (%i)"
, funcInfo,
message
, strerror(errno), errno);
22
else
23
qWarning
(
"%s - Screen: %s - Error: %s (%i)"
, funcInfo,
message
, strerror(errno), errno);
24
}
25
}
26
27
QT_END_NAMESPACE
QQnxIntegration::AlwaysFlushScreenContext
@ AlwaysFlushScreenContext
Definition
qqnxintegration.h:56
QQnxIntegration::instance
static QQnxIntegration * instance()
Definition
qqnxintegration.h:63
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
Q_UNLIKELY
#define Q_UNLIKELY(x)
Definition
qcompilerdetection.h:1017
qCritical
#define qCritical
Definition
qlogging.h:167
qWarning
#define qWarning
Definition
qlogging.h:166
qCDebug
#define qCDebug(category,...)
Definition
qloggingcategory.h:123
message
GLuint GLsizei const GLchar * message
Definition
qopengles2ext.h:154
qScreenCheckError
QT_BEGIN_NAMESPACE void qScreenCheckError(int rc, const char *funcInfo, const char *message, bool critical)
Definition
qqnxglobal.cpp:10
qqnxintegration.h
qtbase
src
plugins
platforms
qnx
qqnxglobal.cpp
Generated by
1.10.0