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
main.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <qpa/qplatformintegrationplugin.h>
6#include "qdirectfb_egl.h"
7
9
10using namespace Qt::StringLiterals;
11
12#ifdef DIRECTFB_GL_EGL
13#define QT_EGL_BACKEND_STRING(list) list << "directfbegl";
14#define QT_EGL_BACKEND_CREATE(list, out) \
15 if (list.toLower() == "directfbegl") \
16 out = new QDirectFbIntegrationEGL;
17#else
18#define QT_EGL_BACKEND_STRING(list)
19#define QT_EGL_BACKEND_CREATE(system, out)
20#endif
21
29
31{
32 Q_UNUSED(paramList);
33 QDirectFbIntegration *integration = nullptr;
34
35 if (!system.compare("directfb"_L1, Qt::CaseInsensitive))
36 integration = new QDirectFbIntegration;
37 QT_EGL_BACKEND_CREATE(system, integration)
38
39 if (!integration)
40 return 0;
41
42 integration->connectToDirectFb();
43
44 return integration;
45}
46
48
49#include "main.moc"
QPlatformIntegration * create(const QString &, const QStringList &) override
Definition main.cpp:30
The QPlatformIntegration class is the entry for WindowSystem specific functionality.
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
int compare(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
Definition qstring.cpp:6664
Combined button and popup list for selecting options.
@ CaseInsensitive
#define QPlatformIntegrationFactoryInterface_iid
#define QT_EGL_BACKEND_CREATE(system, out)
Definition main.cpp:19
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
#define Q_UNUSED(x)
view create()