Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qicohandler.h
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
#
ifndef
QTICOHANDLER_H
5
#
define
QTICOHANDLER_H
6
7
#
include
<
QtGui
/
QImageIOHandler
>
8
9
QT_BEGIN_NAMESPACE
10
11
class
ICOReader
;
12
class
QtIcoHandler
:
public
QImageIOHandler
13
{
14
public
:
15
QtIcoHandler
(QIODevice *device);
16
virtual
~
QtIcoHandler
();
17
18
bool
canRead
()
const
override
;
19
bool
read(QImage *image) override;
20
bool
write(
const
QImage &image) override;
21
22
int
imageCount
()
const
override
;
23
bool
jumpToImage
(
int
imageNumber)
override
;
24
bool
jumpToNextImage
()
override
;
25
26
static
bool
canRead
(QIODevice *device);
27
28
bool
supportsOption(
ImageOption
option)
const
override;
29
QVariant option(
ImageOption
option)
const
override;
30
31
private
:
32
int
m_currentIconIndex;
33
ICOReader
*m_pICOReader;
34
mutable
bool
knownCanRead =
false
;
35
};
36
37
QT_END_NAMESPACE
38
39
#
endif
/* QTICOHANDLER_H */
ICOReader
Definition
qicohandler.cpp:71
QDebugStateSaverPrivate
Definition
qdebug.cpp:1397
QICOPlugin
Definition
main.cpp:16
QICOPlugin::create
QImageIOHandler * create(QIODevice *device, const QByteArray &format=QByteArray()) const override
Creates and returns a QImageIOHandler subclass, with device and format set.
Definition
main.cpp:41
QImageIOHandler::ImageOption
ImageOption
This enum describes the different options supported by QImageIOHandler.
Definition
qimageiohandler.h:42
QTaggedPointer
Definition
qtaggedpointer.h:39
QtIcoHandler
The QtIcoHandler class provides support for the ICO image format.
Definition
qicohandler.h:13
QtIcoHandler::canRead
bool canRead() const override
Verifies if some values (magic bytes) are set as expected in the header of the file.
Definition
qicohandler.cpp:735
QtIcoHandler::~QtIcoHandler
virtual ~QtIcoHandler()
Destructor for QtIcoHandler.
Definition
qicohandler.cpp:690
QtIcoHandler::jumpToNextImage
bool jumpToNextImage() override
\reimp
Definition
qicohandler.cpp:814
QtIcoHandler::imageCount
int imageCount() const override
\reimp
Definition
qicohandler.cpp:793
QtIcoHandler::jumpToImage
bool jumpToImage(int imageNumber) override
\reimp
Definition
qicohandler.cpp:801
QtIcoHandler::QtIcoHandler
QtIcoHandler(QIODevice *device)
Constructs an instance of QtIcoHandler initialized to use device.
Definition
qicohandler.cpp:680
QtIcoHandler::canRead
static bool canRead(QIODevice *device)
This static function is used by the plugin code, and is provided for convenience only.
Definition
qicohandler.cpp:755
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtPrivate
Definition
qalloc.h:29
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qt_QMetaEnum_flagDebugOperator
void qt_QMetaEnum_flagDebugOperator(QDebug &debug, size_t sizeofT, uint value)
Definition
qdebug.cpp:1465
operator<<
QDebug operator<<(QDebug debug, QDir::Filters filters)
Definition
qdir.cpp:2620
operator<<
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
Definition
qdir.cpp:2620
QtPrivate::EnumHasQEnum< T, true, false >
Definition
qdebug.h:692
QtPrivate::EnumHasQEnum
Definition
qdebug.h:691
QtPrivate::EnumHasQEnum::Value
static constexpr bool Value
Definition
qdebug.h:691
QtPrivate::EnumHasQFlag< T, true, true >
Definition
qdebug.h:688
QtPrivate::EnumHasQFlag
Definition
qdebug.h:687
QtPrivate::EnumHasQFlag::Value
static constexpr bool Value
Definition
qdebug.h:687
qtbase
src
plugins
imageformats
ico
qicohandler.h
Generated on
for Qt by
1.18.0