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) 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
6
#
include
<
qiconengineplugin
.
h
>
7
#
include
<
qstringlist
.
h
>
8
9
#
include
"qsvgiconengine.h"
10
11
#
include
<
qiodevice
.
h
>
12
#
include
<
qbytearray
.
h
>
13
#
include
<
qdebug
.
h
>
14
15
QT_BEGIN_NAMESPACE
16
17
class
QSvgIconPlugin
:
public
QIconEnginePlugin
18
{
19
Q_OBJECT
20
#
ifndef
QT_NO_COMPRESS
21
Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QIconEngineFactoryInterface"
FILE
"qsvgiconengine.json"
)
22
#
else
23
Q_PLUGIN_METADATA
(
IID
"org.qt-project.Qt.QIconEngineFactoryInterface"
FILE
"qsvgiconengine-nocompress.json"
)
24
#
endif
25
26
public
:
27
QIconEngine
*
create
(
const
QString
&
filename
=
QString
())
override
;
28
};
29
30
QIconEngine *
QSvgIconPlugin
::create(
const
QString &)
31
{
32
QSvgIconEngine
*engine =
new
QSvgIconEngine
;
33
return
engine;
34
}
35
36
QT_END_NAMESPACE
37
38
#
include
"main.moc"
QSvgIconEngine
Definition
qsvgiconengine.h:17
QSvgIconPlugin
Definition
main.cpp:18
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtsvg
src
plugins
iconengines
svgiconengine
main.cpp
Generated on
for Qt by
1.16.1