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.cpp
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
"qandroidstyle_p.h"
7
8
QT_BEGIN_NAMESPACE
9
10
class
QAndroidStylePlugin
:
public
QStylePlugin
11
{
12
Q_OBJECT
13
Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QStyleFactoryInterface"
FILE
"androidstyle.json"
)
14
public
:
15
QStyle
*
create
(
const
QString
&
key
);
16
};
17
18
QStyle *
QAndroidStylePlugin
::create(
const
QString &key)
19
{
20
if
(key.compare(QLatin1String(
"android"
), Qt::CaseInsensitive) == 0)
21
return
new
QAndroidStyle();
22
23
return
0;
24
}
25
26
QT_END_NAMESPACE
27
28
#
include
"main.moc"
QAndroidStylePlugin
Definition
main.cpp:11
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
styles
android
main.cpp
Generated on
for Qt by
1.14.0