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