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
qwindowsdirect2dplatformplugin.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
5
6#include <QtGui/qpa/qplatformintegrationplugin.h>
7#include <QtCore/qstringlist.h>
8
10
11using namespace Qt::StringLiterals;
12
14{
15 Q_OBJECT
16 Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE "direct2d.json")
17public:
19};
20
21QPlatformIntegration *QWindowsDirect2DIntegrationPlugin::create(const QString& system, const QStringList& paramList)
22{
23 if (system.compare(system, "direct2d"_L1, Qt::CaseInsensitive) == 0)
24 return QWindowsDirect2DIntegration::create(paramList);
25 return nullptr;
26}
27
28QT_END_NAMESPACE
29
30#include "qwindowsdirect2dplatformplugin.moc"