qimageiohandler.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/image/qimageiohandler.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5class QIODevice;-
6-
7class QImageIOHandlerPrivate-
8{-
9 inline QImageIOHandler* q_func() { return static_cast<QImageIOHandler *>(q_ptr); } inline const QImageIOHandler* q_func() const { return static_cast<const QImageIOHandler *>(q_ptr); } friend class QImageIOHandler;-
10public:-
11 QImageIOHandlerPrivate(QImageIOHandler *q);-
12 virtual ~QImageIOHandlerPrivate();-
13-
14 QIODevice *device;-
15 mutable QByteArray format;-
16-
17 QImageIOHandler *q_ptr;-
18};-
19-
20QImageIOHandlerPrivate::QImageIOHandlerPrivate(QImageIOHandler *q)-
21{-
22 device = 0;-
23 q_ptr = q;-
24}
never executed: end of block
0
25-
26QImageIOHandlerPrivate::~QImageIOHandlerPrivate()-
27{-
28}-
29-
30-
31-
32-
33QImageIOHandler::QImageIOHandler()-
34 : d_ptr(new QImageIOHandlerPrivate(this))-
35{-
36}
never executed: end of block
0
37-
38-
39-
40-
41-
42-
43QImageIOHandler::QImageIOHandler(QImageIOHandlerPrivate &dd)-
44 : d_ptr(&dd)-
45{-
46}
never executed: end of block
0
47-
48-
49-
50-
51QImageIOHandler::~QImageIOHandler()-
52{-
53}-
54void QImageIOHandler::setDevice(QIODevice *device)-
55{-
56 QImageIOHandlerPrivate * const d = d_func();-
57 d->device = device;-
58}
never executed: end of block
0
59-
60-
61-
62-
63-
64QIODevice *QImageIOHandler::device() const-
65{-
66 const QImageIOHandlerPrivate * const d = d_func();-
67 return
never executed: return d->device;
d->device;
never executed: return d->device;
0
68}-
69-
70-
71-
72-
73-
74-
75-
76void QImageIOHandler::setFormat(const QByteArray &format)-
77{-
78 QImageIOHandlerPrivate * const d = d_func();-
79 d->format = format;-
80}
never executed: end of block
0
81void QImageIOHandler::setFormat(const QByteArray &format) const-
82{-
83 const QImageIOHandlerPrivate * const d = d_func();-
84 d->format = format;-
85}
never executed: end of block
0
86QByteArray QImageIOHandler::format() const-
87{-
88 const QImageIOHandlerPrivate * const d = d_func();-
89 return
never executed: return d->format;
d->format;
never executed: return d->format;
0
90}-
91QByteArray QImageIOHandler::name() const-
92{-
93 return
never executed: return format();
format();
never executed: return format();
0
94}-
95-
96-
97-
98-
99-
100-
101-
102bool QImageIOHandler::write(const QImage &image)-
103{-
104 (void)image;;-
105 return
never executed: return false;
false;
never executed: return false;
0
106}-
107-
108-
109-
110-
111-
112-
113void QImageIOHandler::setOption(ImageOption option, const QVariant &value)-
114{-
115 (void)option;;-
116 (void)value;;-
117}
never executed: end of block
0
118QVariant QImageIOHandler::option(ImageOption option) const-
119{-
120 (void)option;;-
121 return
never executed: return QVariant();
QVariant();
never executed: return QVariant();
0
122}-
123bool QImageIOHandler::supportsOption(ImageOption option) const-
124{-
125 (void)option;;-
126 return
never executed: return false;
false;
never executed: return false;
0
127}-
128int QImageIOHandler::currentImageNumber() const-
129{-
130 return
never executed: return 0;
0;
never executed: return 0;
0
131}-
132QRect QImageIOHandler::currentImageRect() const-
133{-
134 return
never executed: return QRect();
QRect();
never executed: return QRect();
0
135}-
136int QImageIOHandler::imageCount() const-
137{-
138 return
never executed: return canRead() ? 1 : 0;
canRead() ? 1 : 0;
never executed: return canRead() ? 1 : 0;
0
139}-
140-
141-
142-
143-
144-
145-
146-
147bool QImageIOHandler::jumpToNextImage()-
148{-
149 return
never executed: return false;
false;
never executed: return false;
0
150}-
151bool QImageIOHandler::jumpToImage(int imageNumber)-
152{-
153 (void)imageNumber;;-
154 return
never executed: return false;
false;
never executed: return false;
0
155}-
156-
157-
158-
159-
160-
161-
162int QImageIOHandler::loopCount() const-
163{-
164 return
never executed: return 0;
0;
never executed: return 0;
0
165}-
166-
167-
168-
169-
170-
171-
172-
173int QImageIOHandler::nextImageDelay() const-
174{-
175 return
never executed: return 0;
0;
never executed: return 0;
0
176}-
177-
178-
179-
180-
181-
182-
183-
184QImageIOPlugin::QImageIOPlugin(QObject *parent)-
185 : QObject(parent)-
186{-
187}
never executed: end of block
0
188-
189-
190-
191-
192-
193-
194-
195QImageIOPlugin::~QImageIOPlugin()-
196{-
197}-
198-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9