Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qicohandler.cpp File Reference

(3f515fa7aff7cb24565f0bb61b16bb2bde6faf60)

#include "qicohandler.h"
#include <QtCore/qendian.h>
#include <private/qendian_p.h>
#include <QtGui/QImage>
#include <QtCore/QBuffer>
#include <QtCore/QFile>
#include <QtCore/QLoggingCategory>
#include <qvariant.h>
+ Include dependency graph for qicohandler.cpp:

Go to the source code of this file.

Classes

struct  QT_BEGIN_NAMESPACE::ICONDIRENTRY
 
struct  QT_BEGIN_NAMESPACE::ICONDIR
 
struct  QT_BEGIN_NAMESPACE::BMP_INFOHDR
 
class  ICOReader
 

Namespaces

namespace  QT_BEGIN_NAMESPACE
 Combined button and popup list for selecting options.
 

Macros

#define ICONDIRENTRY_SIZE   16
 
#define ICONDIR_SIZE   6
 
#define BMP_INFOHDR_SIZE   40
 

Typedefs

typedef struct QT_BEGIN_NAMESPACE::ICONDIRENTRYQT_BEGIN_NAMESPACE::LPICONDIRENTRY
 
typedef struct QT_BEGIN_NAMESPACE::ICONDIRQT_BEGIN_NAMESPACE::LPICONDIR
 
typedef struct QT_BEGIN_NAMESPACE::BMP_INFOHDRQT_BEGIN_NAMESPACE::LPBMP_INFOHDR
 

Functions

static bool readIconDirEntry (QIODevice *iodev, ICONDIRENTRY *iconDirEntry)
 
static bool writeIconDirEntry (QIODevice *iodev, const ICONDIRENTRY &iconEntry)
 
static bool readIconDir (QIODevice *iodev, ICONDIR *iconDir)
 
static bool writeIconDir (QIODevice *iodev, const ICONDIR &iconDir)
 
static bool readBMPInfoHeader (QIODevice *iodev, BMP_INFOHDR *pHeader)
 
static bool writeBMPInfoHeader (QIODevice *iodev, const BMP_INFOHDR &header)
 

Variables

static const char icoOrigDepthKey [] = "_q_icoOrigDepth"
 

Macro Definition Documentation

◆ BMP_INFOHDR_SIZE

#define BMP_INFOHDR_SIZE   40

Definition at line 65 of file qicohandler.cpp.

Referenced by readBMPInfoHeader(), ICOReader::write(), and writeBMPInfoHeader().

◆ ICONDIR_SIZE

#define ICONDIR_SIZE   6

Definition at line 50 of file qicohandler.cpp.

Referenced by readIconDir(), ICOReader::readIconEntry(), and ICOReader::write().

◆ ICONDIRENTRY_SIZE

#define ICONDIRENTRY_SIZE   16

Function Documentation

◆ readBMPInfoHeader()

static bool readBMPInfoHeader ( QIODevice * iodev,
BMP_INFOHDR * pHeader )
static

Definition at line 141 of file qicohandler.cpp.

References BMP_INFOHDR_SIZE, and QIODevice::read().

+ Here is the call graph for this function:

◆ readIconDir()

static bool readIconDir ( QIODevice * iodev,
ICONDIR * iconDir )
static

Definition at line 127 of file qicohandler.cpp.

References ICONDIR_SIZE, and QIODevice::read().

Referenced by ICOReader::canRead().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readIconDirEntry()

static bool readIconDirEntry ( QIODevice * iodev,
ICONDIRENTRY * iconDirEntry )
static

Definition at line 113 of file qicohandler.cpp.

References ICONDIRENTRY_SIZE, and QIODevice::read().

Referenced by ICOReader::canRead(), and ICOReader::readIconEntry().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeBMPInfoHeader()

static bool writeBMPInfoHeader ( QIODevice * iodev,
const BMP_INFOHDR & header )
static

Definition at line 148 of file qicohandler.cpp.

References BMP_INFOHDR_SIZE, header(), and QIODevice::write().

Referenced by ICOReader::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeIconDir()

static bool writeIconDir ( QIODevice * iodev,
const ICONDIR & iconDir )
static

Definition at line 134 of file qicohandler.cpp.

References QIODevice::write().

Referenced by ICOReader::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeIconDirEntry()

static bool writeIconDirEntry ( QIODevice * iodev,
const ICONDIRENTRY & iconEntry )
static

Definition at line 120 of file qicohandler.cpp.

References ICONDIRENTRY_SIZE, and QIODevice::write().

Referenced by ICOReader::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ icoOrigDepthKey

const char icoOrigDepthKey[] = "_q_icoOrigDepth"
static

Definition at line 424 of file qicohandler.cpp.

Referenced by ICOReader::iconAt().