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
>
9
#
include
"qcocoaintegration.h"
10
#
include
"qcocoatheme.h"
11
12
#
include
<
QtCore
/
private
/
qcore_mac_p
.
h
>
13
14
QT_BEGIN_NAMESPACE
15
16
using
namespace
Qt::StringLiterals;
17
18
class
QCocoaIntegrationPlugin
:
public
QPlatformIntegrationPlugin
19
{
20
Q_OBJECT
21
Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE
"cocoa.json"
)
22
public
:
23
QPlatformIntegration
*
create
(
const
QString
&,
const
QStringList
&);
24
};
25
26
QPlatformIntegration *
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
35
QT_END_NAMESPACE
36
37
#
include
"main.moc"
QCocoaIntegrationPlugin
Definition
main.mm:19
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
platforms
cocoa
main.mm
Generated on
for Qt by
1.14.0