Qt 6.x
The Qt SDK
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
9
10void qScreenCheckError(int rc, const char *funcInfo, const char *message, bool critical)
11{
13 && QQnxIntegration::instance()->screenContext() != 0) {
14 rc = screen_flush_context(QQnxIntegration::instance()->screenContext(), 0);
15 }
16
17 if (Q_UNLIKELY(rc)) {
18 if (Q_UNLIKELY(critical))
19 qCritical("%s - Screen: %s - Error: %s (%i)", funcInfo, message, strerror(errno), errno);
20 else
21 qWarning("%s - Screen: %s - Error: %s (%i)", funcInfo, message, strerror(errno), errno);
22 }
23}
24
static QQnxIntegration * instance()
Combined button and popup list for selecting options.
#define Q_UNLIKELY(x)
#define qCritical
Definition qlogging.h:163
#define qWarning
Definition qlogging.h:162
GLuint GLsizei const GLchar * message
QT_BEGIN_NAMESPACE void qScreenCheckError(int rc, const char *funcInfo, const char *message, bool critical)