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 | |
12 | QT_BEGIN_NAMESPACE |
13 | |
14 | using namespace Qt::StringLiterals; |
15 | |
16 | Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, |
17 | (QXcbGlIntegrationFactoryInterface_iid, "/xcbglintegrations"_L1, Qt::CaseInsensitive)) |
18 | |
19 | QXcbGlIntegration *QXcbGlIntegrationFactory::create(const QString &platform) |
20 | { |
21 | return qLoadPlugin<QXcbGlIntegration, QXcbGlIntegrationPlugin>(loader: loader(), key: platform); |
22 | } |
23 | |
24 | QT_END_NAMESPACE |
25 |