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 "qxcbglintegrationfactory.h"
5#include "qxcbglintegrationplugin.h"
6
7#include "qxcbglintegrationplugin.h"
8#include "private/qfactoryloader_p.h"
9#include "qguiapplication.h"
10#include "qdir.h"
11
12QT_BEGIN_NAMESPACE
13
14using namespace Qt::StringLiterals;
15
16Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
17 (QXcbGlIntegrationFactoryInterface_iid, "/xcbglintegrations"_L1, Qt::CaseInsensitive))
18
19QXcbGlIntegration *QXcbGlIntegrationFactory::create(const QString &platform)
20{
21 return qLoadPlugin<QXcbGlIntegration, QXcbGlIntegrationPlugin>(loader: loader(), key: platform);
22}
23
24QT_END_NAMESPACE
25

source code of qtbase/src/plugins/platforms/xcb/gl_integrations/qxcbglintegrationfactory.cpp