Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qxcbglintegrationplugin.h
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// Qt-Security score:significant reason:default
4
5#pragma once
6
7#include "qxcbexport.h"
8#include <QtCore/qplugin.h>
9#include <QtCore/qfactoryinterface.h>
10
11QT_BEGIN_NAMESPACE
12
13#define QXcbGlIntegrationFactoryInterface_iid "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5"
14
15class QXcbGlIntegration;
16
18{
19 Q_OBJECT
20public:
21 explicit QXcbGlIntegrationPlugin(QObject *parent = nullptr)
22 : QObject(parent)
23 { }
24
25 virtual QXcbGlIntegration *create() = 0;
26 // the pattern expected by qLoadPlugin calls for a QString argument.
27 // we don't need it, so don't bother subclasses with it:
28 QXcbGlIntegration *create(const QString &) { return create(); }
29};
30QT_END_NAMESPACE
static QXcbGlIntegration * create(const QString &name)
Combined button and popup list for selecting options.
Q_GLOBAL_STATIC_WITH_ARGS(PermissionStatusHash, g_permissionStatusHash,({ { qMetaTypeId< QCameraPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QMicrophonePermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QBluetoothPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QContactsPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QCalendarPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QLocationPermission >(), Qt::PermissionStatus::Undetermined } }))
#define Q_XCB_EXPORT
Definition qxcbexport.h:14
#define QXcbGlIntegrationFactoryInterface_iid