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) 2017 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
<
QtWidgets
/
qstyleplugin
.
h
>
6
#
include
"qmacstyle_mac_p.h"
7
8
#
include
<
QtCore
/
private
/
qcore_mac_p
.
h
>
9
10
QT_BEGIN_NAMESPACE
11
12
class
QMacStylePlugin
:
public
QStylePlugin
13
{
14
Q_OBJECT
15
Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QStyleFactoryInterface"
FILE
"macstyle.json"
)
16
public
:
17
QStyle
*
create
(
const
QString
&
key
);
18
};
19
20
QStyle *
QMacStylePlugin
::create(
const
QString &key)
21
{
22
QMacAutoReleasePool pool;
23
if
(key.compare(QLatin1String(
"macos"
), Qt::CaseInsensitive) == 0)
24
return
QMacStyle
::
create
(
)
;
25
26
return
0;
27
}
28
29
QT_END_NAMESPACE
30
31
#
include
"main.moc"
QMacStylePlugin
Definition
main.mm:13
QMacStyle
Definition
qmacstyle_mac_p.h:30
QMacStyle::create
static QMacStyle * create()
Definition
qmacstyle_mac.mm:2299
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
plugins
styles
mac
main.mm
Generated on
for Qt by
1.14.0