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