image/qimageiohandler.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
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}
executed: }
Execution Count:2219
2219
25 -
26QImageIOHandlerPrivate::~QImageIOHandlerPrivate() -
27{ -
28} -
29 -
30 -
31 -
32 -
33QImageIOHandler::QImageIOHandler() -
34 : d_ptr(new QImageIOHandlerPrivate(this)) -
35{ -
36}
executed: }
Execution Count:2219
2219
37 -
38 -
39 -
40 -
41 -
42 -
43QImageIOHandler::QImageIOHandler(QImageIOHandlerPrivate &dd) -
44 : d_ptr(&dd) -
45{ -
46}
never executed: }
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}
executed: }
Execution Count:2692
2692
59 -
60 -
61 -
62 -
63 -
64QIODevice *QImageIOHandler::device() const -
65{ -
66 const QImageIOHandlerPrivate * const d = d_func(); -
67 return d->device;
executed: return d->device;
Execution Count:20625
20625
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}
executed: }
Execution Count:1547
1547
81void QImageIOHandler::setFormat(const QByteArray &format) const -
82{ -
83 const QImageIOHandlerPrivate * const d = d_func(); -
84 d->format = format; -
85}
executed: }
Execution Count:1335
1335
86QByteArray QImageIOHandler::format() const -
87{ -
88 const QImageIOHandlerPrivate * const d = d_func(); -
89 return d->format;
executed: return d->format;
Execution Count:177
177
90} -
91QByteArray QImageIOHandler::name() const -
92{ -
93 return 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 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: }
0
118QVariant QImageIOHandler::option(ImageOption option) const -
119{ -
120 (void)option;; -
121 return QVariant();
never executed: return QVariant();
0
122} -
123bool QImageIOHandler::supportsOption(ImageOption option) const -
124{ -
125 (void)option;; -
126 return false;
never executed: return false;
0
127} -
128int QImageIOHandler::currentImageNumber() const -
129{ -
130 return 0;
never executed: return 0;
0
131} -
132QRect QImageIOHandler::currentImageRect() const -
133{ -
134 return QRect();
never executed: return QRect();
0
135} -
136int QImageIOHandler::imageCount() const -
137{ -
138 return canRead() ? 1 : 0;
executed: return canRead() ? 1 : 0;
Execution Count:36
36
139} -
140 -
141 -
142 -
143 -
144 -
145 -
146 -
147bool QImageIOHandler::jumpToNextImage() -
148{ -
149 return false;
never executed: return false;
0
150} -
151bool QImageIOHandler::jumpToImage(int imageNumber) -
152{ -
153 (void)imageNumber;; -
154 return false;
executed: return false;
Execution Count:7
7
155} -
156 -
157 -
158 -
159 -
160 -
161 -
162int QImageIOHandler::loopCount() const -
163{ -
164 return 0;
executed: return 0;
Execution Count:4
4
165} -
166 -
167 -
168 -
169 -
170 -
171 -
172 -
173int QImageIOHandler::nextImageDelay() const -
174{ -
175 return 0;
executed: return 0;
Execution Count:45
45
176} -
177 -
178 -
179 -
180 -
181 -
182 -
183 -
184QImageIOPlugin::QImageIOPlugin(QObject *parent) -
185 : QObject(parent) -
186{ -
187}
executed: }
Execution Count:100
100
188 -
189 -
190 -
191 -
192 -
193 -
194 -
195QImageIOPlugin::~QImageIOPlugin() -
196{ -
197} -
198 -
199 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial