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
main.mm
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#include <AppKit/AppKit.h>
6
7#include <qpa/qplatformintegrationplugin.h>
8#include <qpa/qplatformthemeplugin.h>
10#include "qcocoatheme.h"
11
12#include <QtCore/private/qcore_mac_p.h>
13
15
16using namespace Qt::StringLiterals;
17
19{
20 Q_OBJECT
21 Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE "cocoa.json")
22public:
24};
25
26QPlatformIntegration * QCocoaIntegrationPlugin::create(const QString& system, const QStringList& paramList)
27{
28 QMacAutoReleasePool pool;
29 if (system.compare("cocoa"_L1, Qt::CaseInsensitive) == 0)
30 return new QCocoaIntegration(paramList);
31
32 return nullptr;
33}
34
35QT_END_NAMESPACE
36
37#include "main.moc"