4#include "private/qxpmhandler_p.h"
6#ifndef QT_NO_IMAGEFORMAT_XPM
16#include <private/qcolor_p.h>
17#include <private/qduplicatetracker_p.h>
18#include <private/qtools_p.h>
31 unsigned int hashValue = 0;
40 unsigned int hashValue = 0;
41 while (*
str !=
'\0') {
43 hashValue += (
unsigned int)*
str;
52#define QRGB(r,g,b) (r*65536 + g*256 + b)
60 {
QRGB(240,248,255),
"aliceblue" },
61 {
QRGB(250,235,215),
"antiquewhite" },
62 {
QRGB(255,239,219),
"antiquewhite1" },
63 {
QRGB(238,223,204),
"antiquewhite2" },
64 {
QRGB(205,192,176),
"antiquewhite3" },
65 {
QRGB(139,131,120),
"antiquewhite4" },
66 {
QRGB(127,255,212),
"aquamarine" },
67 {
QRGB(127,255,212),
"aquamarine1" },
68 {
QRGB(118,238,198),
"aquamarine2" },
69 {
QRGB(102,205,170),
"aquamarine3" },
70 {
QRGB( 69,139,116),
"aquamarine4" },
71 {
QRGB(240,255,255),
"azure" },
72 {
QRGB(240,255,255),
"azure1" },
73 {
QRGB(224,238,238),
"azure2" },
74 {
QRGB(193,205,205),
"azure3" },
75 {
QRGB(131,139,139),
"azure4" },
76 {
QRGB(245,245,220),
"beige" },
77 {
QRGB(255,228,196),
"bisque" },
78 {
QRGB(255,228,196),
"bisque1" },
79 {
QRGB(238,213,183),
"bisque2" },
80 {
QRGB(205,183,158),
"bisque3" },
81 {
QRGB(139,125,107),
"bisque4" },
82 {
QRGB( 0, 0, 0),
"black" },
83 {
QRGB(255,235,205),
"blanchedalmond" },
84 {
QRGB( 0, 0,255),
"blue" },
85 {
QRGB( 0, 0,255),
"blue1" },
86 {
QRGB( 0, 0,238),
"blue2" },
87 {
QRGB( 0, 0,205),
"blue3" },
88 {
QRGB( 0, 0,139),
"blue4" },
89 {
QRGB(138, 43,226),
"blueviolet" },
90 {
QRGB(165, 42, 42),
"brown" },
91 {
QRGB(255, 64, 64),
"brown1" },
92 {
QRGB(238, 59, 59),
"brown2" },
93 {
QRGB(205, 51, 51),
"brown3" },
94 {
QRGB(139, 35, 35),
"brown4" },
95 {
QRGB(222,184,135),
"burlywood" },
96 {
QRGB(255,211,155),
"burlywood1" },
97 {
QRGB(238,197,145),
"burlywood2" },
98 {
QRGB(205,170,125),
"burlywood3" },
99 {
QRGB(139,115, 85),
"burlywood4" },
100 {
QRGB( 95,158,160),
"cadetblue" },
101 {
QRGB(152,245,255),
"cadetblue1" },
102 {
QRGB(142,229,238),
"cadetblue2" },
103 {
QRGB(122,197,205),
"cadetblue3" },
104 {
QRGB( 83,134,139),
"cadetblue4" },
105 {
QRGB(127,255, 0),
"chartreuse" },
106 {
QRGB(127,255, 0),
"chartreuse1" },
107 {
QRGB(118,238, 0),
"chartreuse2" },
108 {
QRGB(102,205, 0),
"chartreuse3" },
109 {
QRGB( 69,139, 0),
"chartreuse4" },
110 {
QRGB(210,105, 30),
"chocolate" },
111 {
QRGB(255,127, 36),
"chocolate1" },
112 {
QRGB(238,118, 33),
"chocolate2" },
113 {
QRGB(205,102, 29),
"chocolate3" },
114 {
QRGB(139, 69, 19),
"chocolate4" },
115 {
QRGB(255,127, 80),
"coral" },
116 {
QRGB(255,114, 86),
"coral1" },
117 {
QRGB(238,106, 80),
"coral2" },
118 {
QRGB(205, 91, 69),
"coral3" },
119 {
QRGB(139, 62, 47),
"coral4" },
120 {
QRGB(100,149,237),
"cornflowerblue" },
121 {
QRGB(255,248,220),
"cornsilk" },
122 {
QRGB(255,248,220),
"cornsilk1" },
123 {
QRGB(238,232,205),
"cornsilk2" },
124 {
QRGB(205,200,177),
"cornsilk3" },
125 {
QRGB(139,136,120),
"cornsilk4" },
126 {
QRGB( 0,255,255),
"cyan" },
127 {
QRGB( 0,255,255),
"cyan1" },
128 {
QRGB( 0,238,238),
"cyan2" },
129 {
QRGB( 0,205,205),
"cyan3" },
130 {
QRGB( 0,139,139),
"cyan4" },
131 {
QRGB( 0, 0,139),
"darkblue" },
132 {
QRGB( 0,139,139),
"darkcyan" },
133 {
QRGB(184,134, 11),
"darkgoldenrod" },
134 {
QRGB(255,185, 15),
"darkgoldenrod1" },
135 {
QRGB(238,173, 14),
"darkgoldenrod2" },
136 {
QRGB(205,149, 12),
"darkgoldenrod3" },
137 {
QRGB(139,101, 8),
"darkgoldenrod4" },
138 {
QRGB(169,169,169),
"darkgray" },
139 {
QRGB( 0,100, 0),
"darkgreen" },
140 {
QRGB(169,169,169),
"darkgrey" },
141 {
QRGB(189,183,107),
"darkkhaki" },
142 {
QRGB(139, 0,139),
"darkmagenta" },
143 {
QRGB( 85,107, 47),
"darkolivegreen" },
144 {
QRGB(202,255,112),
"darkolivegreen1" },
145 {
QRGB(188,238,104),
"darkolivegreen2" },
146 {
QRGB(162,205, 90),
"darkolivegreen3" },
147 {
QRGB(110,139, 61),
"darkolivegreen4" },
148 {
QRGB(255,140, 0),
"darkorange" },
149 {
QRGB(255,127, 0),
"darkorange1" },
150 {
QRGB(238,118, 0),
"darkorange2" },
151 {
QRGB(205,102, 0),
"darkorange3" },
152 {
QRGB(139, 69, 0),
"darkorange4" },
153 {
QRGB(153, 50,204),
"darkorchid" },
154 {
QRGB(191, 62,255),
"darkorchid1" },
155 {
QRGB(178, 58,238),
"darkorchid2" },
156 {
QRGB(154, 50,205),
"darkorchid3" },
157 {
QRGB(104, 34,139),
"darkorchid4" },
158 {
QRGB(139, 0, 0),
"darkred" },
159 {
QRGB(233,150,122),
"darksalmon" },
160 {
QRGB(143,188,143),
"darkseagreen" },
161 {
QRGB(193,255,193),
"darkseagreen1" },
162 {
QRGB(180,238,180),
"darkseagreen2" },
163 {
QRGB(155,205,155),
"darkseagreen3" },
164 {
QRGB(105,139,105),
"darkseagreen4" },
165 {
QRGB( 72, 61,139),
"darkslateblue" },
166 {
QRGB( 47, 79, 79),
"darkslategray" },
167 {
QRGB(151,255,255),
"darkslategray1" },
168 {
QRGB(141,238,238),
"darkslategray2" },
169 {
QRGB(121,205,205),
"darkslategray3" },
170 {
QRGB( 82,139,139),
"darkslategray4" },
171 {
QRGB( 47, 79, 79),
"darkslategrey" },
172 {
QRGB( 0,206,209),
"darkturquoise" },
173 {
QRGB(148, 0,211),
"darkviolet" },
174 {
QRGB(255, 20,147),
"deeppink" },
175 {
QRGB(255, 20,147),
"deeppink1" },
176 {
QRGB(238, 18,137),
"deeppink2" },
177 {
QRGB(205, 16,118),
"deeppink3" },
178 {
QRGB(139, 10, 80),
"deeppink4" },
179 {
QRGB( 0,191,255),
"deepskyblue" },
180 {
QRGB( 0,191,255),
"deepskyblue1" },
181 {
QRGB( 0,178,238),
"deepskyblue2" },
182 {
QRGB( 0,154,205),
"deepskyblue3" },
183 {
QRGB( 0,104,139),
"deepskyblue4" },
184 {
QRGB(105,105,105),
"dimgray" },
185 {
QRGB(105,105,105),
"dimgrey" },
186 {
QRGB( 30,144,255),
"dodgerblue" },
187 {
QRGB( 30,144,255),
"dodgerblue1" },
188 {
QRGB( 28,134,238),
"dodgerblue2" },
189 {
QRGB( 24,116,205),
"dodgerblue3" },
190 {
QRGB( 16, 78,139),
"dodgerblue4" },
191 {
QRGB(178, 34, 34),
"firebrick" },
192 {
QRGB(255, 48, 48),
"firebrick1" },
193 {
QRGB(238, 44, 44),
"firebrick2" },
194 {
QRGB(205, 38, 38),
"firebrick3" },
195 {
QRGB(139, 26, 26),
"firebrick4" },
196 {
QRGB(255,250,240),
"floralwhite" },
197 {
QRGB( 34,139, 34),
"forestgreen" },
198 {
QRGB(220,220,220),
"gainsboro" },
199 {
QRGB(248,248,255),
"ghostwhite" },
200 {
QRGB(255,215, 0),
"gold" },
201 {
QRGB(255,215, 0),
"gold1" },
202 {
QRGB(238,201, 0),
"gold2" },
203 {
QRGB(205,173, 0),
"gold3" },
204 {
QRGB(139,117, 0),
"gold4" },
205 {
QRGB(218,165, 32),
"goldenrod" },
206 {
QRGB(255,193, 37),
"goldenrod1" },
207 {
QRGB(238,180, 34),
"goldenrod2" },
208 {
QRGB(205,155, 29),
"goldenrod3" },
209 {
QRGB(139,105, 20),
"goldenrod4" },
210 {
QRGB(190,190,190),
"gray" },
211 {
QRGB( 0, 0, 0),
"gray0" },
212 {
QRGB( 3, 3, 3),
"gray1" },
213 {
QRGB( 26, 26, 26),
"gray10" },
214 {
QRGB(255,255,255),
"gray100" },
215 {
QRGB( 28, 28, 28),
"gray11" },
216 {
QRGB( 31, 31, 31),
"gray12" },
217 {
QRGB( 33, 33, 33),
"gray13" },
218 {
QRGB( 36, 36, 36),
"gray14" },
219 {
QRGB( 38, 38, 38),
"gray15" },
220 {
QRGB( 41, 41, 41),
"gray16" },
221 {
QRGB( 43, 43, 43),
"gray17" },
222 {
QRGB( 46, 46, 46),
"gray18" },
223 {
QRGB( 48, 48, 48),
"gray19" },
224 {
QRGB( 5, 5, 5),
"gray2" },
225 {
QRGB( 51, 51, 51),
"gray20" },
226 {
QRGB( 54, 54, 54),
"gray21" },
227 {
QRGB( 56, 56, 56),
"gray22" },
228 {
QRGB( 59, 59, 59),
"gray23" },
229 {
QRGB( 61, 61, 61),
"gray24" },
230 {
QRGB( 64, 64, 64),
"gray25" },
231 {
QRGB( 66, 66, 66),
"gray26" },
232 {
QRGB( 69, 69, 69),
"gray27" },
233 {
QRGB( 71, 71, 71),
"gray28" },
234 {
QRGB( 74, 74, 74),
"gray29" },
235 {
QRGB( 8, 8, 8),
"gray3" },
236 {
QRGB( 77, 77, 77),
"gray30" },
237 {
QRGB( 79, 79, 79),
"gray31" },
238 {
QRGB( 82, 82, 82),
"gray32" },
239 {
QRGB( 84, 84, 84),
"gray33" },
240 {
QRGB( 87, 87, 87),
"gray34" },
241 {
QRGB( 89, 89, 89),
"gray35" },
242 {
QRGB( 92, 92, 92),
"gray36" },
243 {
QRGB( 94, 94, 94),
"gray37" },
244 {
QRGB( 97, 97, 97),
"gray38" },
245 {
QRGB( 99, 99, 99),
"gray39" },
246 {
QRGB( 10, 10, 10),
"gray4" },
247 {
QRGB(102,102,102),
"gray40" },
248 {
QRGB(105,105,105),
"gray41" },
249 {
QRGB(107,107,107),
"gray42" },
250 {
QRGB(110,110,110),
"gray43" },
251 {
QRGB(112,112,112),
"gray44" },
252 {
QRGB(115,115,115),
"gray45" },
253 {
QRGB(117,117,117),
"gray46" },
254 {
QRGB(120,120,120),
"gray47" },
255 {
QRGB(122,122,122),
"gray48" },
256 {
QRGB(125,125,125),
"gray49" },
257 {
QRGB( 13, 13, 13),
"gray5" },
258 {
QRGB(127,127,127),
"gray50" },
259 {
QRGB(130,130,130),
"gray51" },
260 {
QRGB(133,133,133),
"gray52" },
261 {
QRGB(135,135,135),
"gray53" },
262 {
QRGB(138,138,138),
"gray54" },
263 {
QRGB(140,140,140),
"gray55" },
264 {
QRGB(143,143,143),
"gray56" },
265 {
QRGB(145,145,145),
"gray57" },
266 {
QRGB(148,148,148),
"gray58" },
267 {
QRGB(150,150,150),
"gray59" },
268 {
QRGB( 15, 15, 15),
"gray6" },
269 {
QRGB(153,153,153),
"gray60" },
270 {
QRGB(156,156,156),
"gray61" },
271 {
QRGB(158,158,158),
"gray62" },
272 {
QRGB(161,161,161),
"gray63" },
273 {
QRGB(163,163,163),
"gray64" },
274 {
QRGB(166,166,166),
"gray65" },
275 {
QRGB(168,168,168),
"gray66" },
276 {
QRGB(171,171,171),
"gray67" },
277 {
QRGB(173,173,173),
"gray68" },
278 {
QRGB(176,176,176),
"gray69" },
279 {
QRGB( 18, 18, 18),
"gray7" },
280 {
QRGB(179,179,179),
"gray70" },
281 {
QRGB(181,181,181),
"gray71" },
282 {
QRGB(184,184,184),
"gray72" },
283 {
QRGB(186,186,186),
"gray73" },
284 {
QRGB(189,189,189),
"gray74" },
285 {
QRGB(191,191,191),
"gray75" },
286 {
QRGB(194,194,194),
"gray76" },
287 {
QRGB(196,196,196),
"gray77" },
288 {
QRGB(199,199,199),
"gray78" },
289 {
QRGB(201,201,201),
"gray79" },
290 {
QRGB( 20, 20, 20),
"gray8" },
291 {
QRGB(204,204,204),
"gray80" },
292 {
QRGB(207,207,207),
"gray81" },
293 {
QRGB(209,209,209),
"gray82" },
294 {
QRGB(212,212,212),
"gray83" },
295 {
QRGB(214,214,214),
"gray84" },
296 {
QRGB(217,217,217),
"gray85" },
297 {
QRGB(219,219,219),
"gray86" },
298 {
QRGB(222,222,222),
"gray87" },
299 {
QRGB(224,224,224),
"gray88" },
300 {
QRGB(227,227,227),
"gray89" },
301 {
QRGB( 23, 23, 23),
"gray9" },
302 {
QRGB(229,229,229),
"gray90" },
303 {
QRGB(232,232,232),
"gray91" },
304 {
QRGB(235,235,235),
"gray92" },
305 {
QRGB(237,237,237),
"gray93" },
306 {
QRGB(240,240,240),
"gray94" },
307 {
QRGB(242,242,242),
"gray95" },
308 {
QRGB(245,245,245),
"gray96" },
309 {
QRGB(247,247,247),
"gray97" },
310 {
QRGB(250,250,250),
"gray98" },
311 {
QRGB(252,252,252),
"gray99" },
312 {
QRGB( 0,255, 0),
"green" },
313 {
QRGB( 0,255, 0),
"green1" },
314 {
QRGB( 0,238, 0),
"green2" },
315 {
QRGB( 0,205, 0),
"green3" },
316 {
QRGB( 0,139, 0),
"green4" },
317 {
QRGB(173,255, 47),
"greenyellow" },
318 {
QRGB(190,190,190),
"grey" },
319 {
QRGB( 0, 0, 0),
"grey0" },
320 {
QRGB( 3, 3, 3),
"grey1" },
321 {
QRGB( 26, 26, 26),
"grey10" },
322 {
QRGB(255,255,255),
"grey100" },
323 {
QRGB( 28, 28, 28),
"grey11" },
324 {
QRGB( 31, 31, 31),
"grey12" },
325 {
QRGB( 33, 33, 33),
"grey13" },
326 {
QRGB( 36, 36, 36),
"grey14" },
327 {
QRGB( 38, 38, 38),
"grey15" },
328 {
QRGB( 41, 41, 41),
"grey16" },
329 {
QRGB( 43, 43, 43),
"grey17" },
330 {
QRGB( 46, 46, 46),
"grey18" },
331 {
QRGB( 48, 48, 48),
"grey19" },
332 {
QRGB( 5, 5, 5),
"grey2" },
333 {
QRGB( 51, 51, 51),
"grey20" },
334 {
QRGB( 54, 54, 54),
"grey21" },
335 {
QRGB( 56, 56, 56),
"grey22" },
336 {
QRGB( 59, 59, 59),
"grey23" },
337 {
QRGB( 61, 61, 61),
"grey24" },
338 {
QRGB( 64, 64, 64),
"grey25" },
339 {
QRGB( 66, 66, 66),
"grey26" },
340 {
QRGB( 69, 69, 69),
"grey27" },
341 {
QRGB( 71, 71, 71),
"grey28" },
342 {
QRGB( 74, 74, 74),
"grey29" },
343 {
QRGB( 8, 8, 8),
"grey3" },
344 {
QRGB( 77, 77, 77),
"grey30" },
345 {
QRGB( 79, 79, 79),
"grey31" },
346 {
QRGB( 82, 82, 82),
"grey32" },
347 {
QRGB( 84, 84, 84),
"grey33" },
348 {
QRGB( 87, 87, 87),
"grey34" },
349 {
QRGB( 89, 89, 89),
"grey35" },
350 {
QRGB( 92, 92, 92),
"grey36" },
351 {
QRGB( 94, 94, 94),
"grey37" },
352 {
QRGB( 97, 97, 97),
"grey38" },
353 {
QRGB( 99, 99, 99),
"grey39" },
354 {
QRGB( 10, 10, 10),
"grey4" },
355 {
QRGB(102,102,102),
"grey40" },
356 {
QRGB(105,105,105),
"grey41" },
357 {
QRGB(107,107,107),
"grey42" },
358 {
QRGB(110,110,110),
"grey43" },
359 {
QRGB(112,112,112),
"grey44" },
360 {
QRGB(115,115,115),
"grey45" },
361 {
QRGB(117,117,117),
"grey46" },
362 {
QRGB(120,120,120),
"grey47" },
363 {
QRGB(122,122,122),
"grey48" },
364 {
QRGB(125,125,125),
"grey49" },
365 {
QRGB( 13, 13, 13),
"grey5" },
366 {
QRGB(127,127,127),
"grey50" },
367 {
QRGB(130,130,130),
"grey51" },
368 {
QRGB(133,133,133),
"grey52" },
369 {
QRGB(135,135,135),
"grey53" },
370 {
QRGB(138,138,138),
"grey54" },
371 {
QRGB(140,140,140),
"grey55" },
372 {
QRGB(143,143,143),
"grey56" },
373 {
QRGB(145,145,145),
"grey57" },
374 {
QRGB(148,148,148),
"grey58" },
375 {
QRGB(150,150,150),
"grey59" },
376 {
QRGB( 15, 15, 15),
"grey6" },
377 {
QRGB(153,153,153),
"grey60" },
378 {
QRGB(156,156,156),
"grey61" },
379 {
QRGB(158,158,158),
"grey62" },
380 {
QRGB(161,161,161),
"grey63" },
381 {
QRGB(163,163,163),
"grey64" },
382 {
QRGB(166,166,166),
"grey65" },
383 {
QRGB(168,168,168),
"grey66" },
384 {
QRGB(171,171,171),
"grey67" },
385 {
QRGB(173,173,173),
"grey68" },
386 {
QRGB(176,176,176),
"grey69" },
387 {
QRGB( 18, 18, 18),
"grey7" },
388 {
QRGB(179,179,179),
"grey70" },
389 {
QRGB(181,181,181),
"grey71" },
390 {
QRGB(184,184,184),
"grey72" },
391 {
QRGB(186,186,186),
"grey73" },
392 {
QRGB(189,189,189),
"grey74" },
393 {
QRGB(191,191,191),
"grey75" },
394 {
QRGB(194,194,194),
"grey76" },
395 {
QRGB(196,196,196),
"grey77" },
396 {
QRGB(199,199,199),
"grey78" },
397 {
QRGB(201,201,201),
"grey79" },
398 {
QRGB( 20, 20, 20),
"grey8" },
399 {
QRGB(204,204,204),
"grey80" },
400 {
QRGB(207,207,207),
"grey81" },
401 {
QRGB(209,209,209),
"grey82" },
402 {
QRGB(212,212,212),
"grey83" },
403 {
QRGB(214,214,214),
"grey84" },
404 {
QRGB(217,217,217),
"grey85" },
405 {
QRGB(219,219,219),
"grey86" },
406 {
QRGB(222,222,222),
"grey87" },
407 {
QRGB(224,224,224),
"grey88" },
408 {
QRGB(227,227,227),
"grey89" },
409 {
QRGB( 23, 23, 23),
"grey9" },
410 {
QRGB(229,229,229),
"grey90" },
411 {
QRGB(232,232,232),
"grey91" },
412 {
QRGB(235,235,235),
"grey92" },
413 {
QRGB(237,237,237),
"grey93" },
414 {
QRGB(240,240,240),
"grey94" },
415 {
QRGB(242,242,242),
"grey95" },
416 {
QRGB(245,245,245),
"grey96" },
417 {
QRGB(247,247,247),
"grey97" },
418 {
QRGB(250,250,250),
"grey98" },
419 {
QRGB(252,252,252),
"grey99" },
420 {
QRGB(240,255,240),
"honeydew" },
421 {
QRGB(240,255,240),
"honeydew1" },
422 {
QRGB(224,238,224),
"honeydew2" },
423 {
QRGB(193,205,193),
"honeydew3" },
424 {
QRGB(131,139,131),
"honeydew4" },
425 {
QRGB(255,105,180),
"hotpink" },
426 {
QRGB(255,110,180),
"hotpink1" },
427 {
QRGB(238,106,167),
"hotpink2" },
428 {
QRGB(205, 96,144),
"hotpink3" },
429 {
QRGB(139, 58, 98),
"hotpink4" },
430 {
QRGB(205, 92, 92),
"indianred" },
431 {
QRGB(255,106,106),
"indianred1" },
432 {
QRGB(238, 99, 99),
"indianred2" },
433 {
QRGB(205, 85, 85),
"indianred3" },
434 {
QRGB(139, 58, 58),
"indianred4" },
435 {
QRGB(255,255,240),
"ivory" },
436 {
QRGB(255,255,240),
"ivory1" },
437 {
QRGB(238,238,224),
"ivory2" },
438 {
QRGB(205,205,193),
"ivory3" },
439 {
QRGB(139,139,131),
"ivory4" },
440 {
QRGB(240,230,140),
"khaki" },
441 {
QRGB(255,246,143),
"khaki1" },
442 {
QRGB(238,230,133),
"khaki2" },
443 {
QRGB(205,198,115),
"khaki3" },
444 {
QRGB(139,134, 78),
"khaki4" },
445 {
QRGB(230,230,250),
"lavender" },
446 {
QRGB(255,240,245),
"lavenderblush" },
447 {
QRGB(255,240,245),
"lavenderblush1" },
448 {
QRGB(238,224,229),
"lavenderblush2" },
449 {
QRGB(205,193,197),
"lavenderblush3" },
450 {
QRGB(139,131,134),
"lavenderblush4" },
451 {
QRGB(124,252, 0),
"lawngreen" },
452 {
QRGB(255,250,205),
"lemonchiffon" },
453 {
QRGB(255,250,205),
"lemonchiffon1" },
454 {
QRGB(238,233,191),
"lemonchiffon2" },
455 {
QRGB(205,201,165),
"lemonchiffon3" },
456 {
QRGB(139,137,112),
"lemonchiffon4" },
457 {
QRGB(173,216,230),
"lightblue" },
458 {
QRGB(191,239,255),
"lightblue1" },
459 {
QRGB(178,223,238),
"lightblue2" },
460 {
QRGB(154,192,205),
"lightblue3" },
461 {
QRGB(104,131,139),
"lightblue4" },
462 {
QRGB(240,128,128),
"lightcoral" },
463 {
QRGB(224,255,255),
"lightcyan" },
464 {
QRGB(224,255,255),
"lightcyan1" },
465 {
QRGB(209,238,238),
"lightcyan2" },
466 {
QRGB(180,205,205),
"lightcyan3" },
467 {
QRGB(122,139,139),
"lightcyan4" },
468 {
QRGB(238,221,130),
"lightgoldenrod" },
469 {
QRGB(255,236,139),
"lightgoldenrod1" },
470 {
QRGB(238,220,130),
"lightgoldenrod2" },
471 {
QRGB(205,190,112),
"lightgoldenrod3" },
472 {
QRGB(139,129, 76),
"lightgoldenrod4" },
473 {
QRGB(250,250,210),
"lightgoldenrodyellow" },
474 {
QRGB(211,211,211),
"lightgray" },
475 {
QRGB(144,238,144),
"lightgreen" },
476 {
QRGB(211,211,211),
"lightgrey" },
477 {
QRGB(255,182,193),
"lightpink" },
478 {
QRGB(255,174,185),
"lightpink1" },
479 {
QRGB(238,162,173),
"lightpink2" },
480 {
QRGB(205,140,149),
"lightpink3" },
481 {
QRGB(139, 95,101),
"lightpink4" },
482 {
QRGB(255,160,122),
"lightsalmon" },
483 {
QRGB(255,160,122),
"lightsalmon1" },
484 {
QRGB(238,149,114),
"lightsalmon2" },
485 {
QRGB(205,129, 98),
"lightsalmon3" },
486 {
QRGB(139, 87, 66),
"lightsalmon4" },
487 {
QRGB( 32,178,170),
"lightseagreen" },
488 {
QRGB(135,206,250),
"lightskyblue" },
489 {
QRGB(176,226,255),
"lightskyblue1" },
490 {
QRGB(164,211,238),
"lightskyblue2" },
491 {
QRGB(141,182,205),
"lightskyblue3" },
492 {
QRGB( 96,123,139),
"lightskyblue4" },
493 {
QRGB(132,112,255),
"lightslateblue" },
494 {
QRGB(119,136,153),
"lightslategray" },
495 {
QRGB(119,136,153),
"lightslategrey" },
496 {
QRGB(176,196,222),
"lightsteelblue" },
497 {
QRGB(202,225,255),
"lightsteelblue1" },
498 {
QRGB(188,210,238),
"lightsteelblue2" },
499 {
QRGB(162,181,205),
"lightsteelblue3" },
500 {
QRGB(110,123,139),
"lightsteelblue4" },
501 {
QRGB(255,255,224),
"lightyellow" },
502 {
QRGB(255,255,224),
"lightyellow1" },
503 {
QRGB(238,238,209),
"lightyellow2" },
504 {
QRGB(205,205,180),
"lightyellow3" },
505 {
QRGB(139,139,122),
"lightyellow4" },
506 {
QRGB( 50,205, 50),
"limegreen" },
507 {
QRGB(250,240,230),
"linen" },
508 {
QRGB(255, 0,255),
"magenta" },
509 {
QRGB(255, 0,255),
"magenta1" },
510 {
QRGB(238, 0,238),
"magenta2" },
511 {
QRGB(205, 0,205),
"magenta3" },
512 {
QRGB(139, 0,139),
"magenta4" },
513 {
QRGB(176, 48, 96),
"maroon" },
514 {
QRGB(255, 52,179),
"maroon1" },
515 {
QRGB(238, 48,167),
"maroon2" },
516 {
QRGB(205, 41,144),
"maroon3" },
517 {
QRGB(139, 28, 98),
"maroon4" },
518 {
QRGB(102,205,170),
"mediumaquamarine" },
519 {
QRGB( 0, 0,205),
"mediumblue" },
520 {
QRGB(186, 85,211),
"mediumorchid" },
521 {
QRGB(224,102,255),
"mediumorchid1" },
522 {
QRGB(209, 95,238),
"mediumorchid2" },
523 {
QRGB(180, 82,205),
"mediumorchid3" },
524 {
QRGB(122, 55,139),
"mediumorchid4" },
525 {
QRGB(147,112,219),
"mediumpurple" },
526 {
QRGB(171,130,255),
"mediumpurple1" },
527 {
QRGB(159,121,238),
"mediumpurple2" },
528 {
QRGB(137,104,205),
"mediumpurple3" },
529 {
QRGB( 93, 71,139),
"mediumpurple4" },
530 {
QRGB( 60,179,113),
"mediumseagreen" },
531 {
QRGB(123,104,238),
"mediumslateblue" },
532 {
QRGB( 0,250,154),
"mediumspringgreen" },
533 {
QRGB( 72,209,204),
"mediumturquoise" },
534 {
QRGB(199, 21,133),
"mediumvioletred" },
535 {
QRGB( 25, 25,112),
"midnightblue" },
536 {
QRGB(245,255,250),
"mintcream" },
537 {
QRGB(255,228,225),
"mistyrose" },
538 {
QRGB(255,228,225),
"mistyrose1" },
539 {
QRGB(238,213,210),
"mistyrose2" },
540 {
QRGB(205,183,181),
"mistyrose3" },
541 {
QRGB(139,125,123),
"mistyrose4" },
542 {
QRGB(255,228,181),
"moccasin" },
543 {
QRGB(255,222,173),
"navajowhite" },
544 {
QRGB(255,222,173),
"navajowhite1" },
545 {
QRGB(238,207,161),
"navajowhite2" },
546 {
QRGB(205,179,139),
"navajowhite3" },
547 {
QRGB(139,121, 94),
"navajowhite4" },
548 {
QRGB( 0, 0,128),
"navy" },
549 {
QRGB( 0, 0,128),
"navyblue" },
550 {
QRGB(253,245,230),
"oldlace" },
551 {
QRGB(107,142, 35),
"olivedrab" },
552 {
QRGB(192,255, 62),
"olivedrab1" },
553 {
QRGB(179,238, 58),
"olivedrab2" },
554 {
QRGB(154,205, 50),
"olivedrab3" },
555 {
QRGB(105,139, 34),
"olivedrab4" },
556 {
QRGB(255,165, 0),
"orange" },
557 {
QRGB(255,165, 0),
"orange1" },
558 {
QRGB(238,154, 0),
"orange2" },
559 {
QRGB(205,133, 0),
"orange3" },
560 {
QRGB(139, 90, 0),
"orange4" },
561 {
QRGB(255, 69, 0),
"orangered" },
562 {
QRGB(255, 69, 0),
"orangered1" },
563 {
QRGB(238, 64, 0),
"orangered2" },
564 {
QRGB(205, 55, 0),
"orangered3" },
565 {
QRGB(139, 37, 0),
"orangered4" },
566 {
QRGB(218,112,214),
"orchid" },
567 {
QRGB(255,131,250),
"orchid1" },
568 {
QRGB(238,122,233),
"orchid2" },
569 {
QRGB(205,105,201),
"orchid3" },
570 {
QRGB(139, 71,137),
"orchid4" },
571 {
QRGB(238,232,170),
"palegoldenrod" },
572 {
QRGB(152,251,152),
"palegreen" },
573 {
QRGB(154,255,154),
"palegreen1" },
574 {
QRGB(144,238,144),
"palegreen2" },
575 {
QRGB(124,205,124),
"palegreen3" },
576 {
QRGB( 84,139, 84),
"palegreen4" },
577 {
QRGB(175,238,238),
"paleturquoise" },
578 {
QRGB(187,255,255),
"paleturquoise1" },
579 {
QRGB(174,238,238),
"paleturquoise2" },
580 {
QRGB(150,205,205),
"paleturquoise3" },
581 {
QRGB(102,139,139),
"paleturquoise4" },
582 {
QRGB(219,112,147),
"palevioletred" },
583 {
QRGB(255,130,171),
"palevioletred1" },
584 {
QRGB(238,121,159),
"palevioletred2" },
585 {
QRGB(205,104,137),
"palevioletred3" },
586 {
QRGB(139, 71, 93),
"palevioletred4" },
587 {
QRGB(255,239,213),
"papayawhip" },
588 {
QRGB(255,218,185),
"peachpuff" },
589 {
QRGB(255,218,185),
"peachpuff1" },
590 {
QRGB(238,203,173),
"peachpuff2" },
591 {
QRGB(205,175,149),
"peachpuff3" },
592 {
QRGB(139,119,101),
"peachpuff4" },
593 {
QRGB(205,133, 63),
"peru" },
594 {
QRGB(255,192,203),
"pink" },
595 {
QRGB(255,181,197),
"pink1" },
596 {
QRGB(238,169,184),
"pink2" },
597 {
QRGB(205,145,158),
"pink3" },
598 {
QRGB(139, 99,108),
"pink4" },
599 {
QRGB(221,160,221),
"plum" },
600 {
QRGB(255,187,255),
"plum1" },
601 {
QRGB(238,174,238),
"plum2" },
602 {
QRGB(205,150,205),
"plum3" },
603 {
QRGB(139,102,139),
"plum4" },
604 {
QRGB(176,224,230),
"powderblue" },
605 {
QRGB(160, 32,240),
"purple" },
606 {
QRGB(155, 48,255),
"purple1" },
607 {
QRGB(145, 44,238),
"purple2" },
608 {
QRGB(125, 38,205),
"purple3" },
609 {
QRGB( 85, 26,139),
"purple4" },
610 {
QRGB(255, 0, 0),
"red" },
611 {
QRGB(255, 0, 0),
"red1" },
612 {
QRGB(238, 0, 0),
"red2" },
613 {
QRGB(205, 0, 0),
"red3" },
614 {
QRGB(139, 0, 0),
"red4" },
615 {
QRGB(188,143,143),
"rosybrown" },
616 {
QRGB(255,193,193),
"rosybrown1" },
617 {
QRGB(238,180,180),
"rosybrown2" },
618 {
QRGB(205,155,155),
"rosybrown3" },
619 {
QRGB(139,105,105),
"rosybrown4" },
620 {
QRGB( 65,105,225),
"royalblue" },
621 {
QRGB( 72,118,255),
"royalblue1" },
622 {
QRGB( 67,110,238),
"royalblue2" },
623 {
QRGB( 58, 95,205),
"royalblue3" },
624 {
QRGB( 39, 64,139),
"royalblue4" },
625 {
QRGB(139, 69, 19),
"saddlebrown" },
626 {
QRGB(250,128,114),
"salmon" },
627 {
QRGB(255,140,105),
"salmon1" },
628 {
QRGB(238,130, 98),
"salmon2" },
629 {
QRGB(205,112, 84),
"salmon3" },
630 {
QRGB(139, 76, 57),
"salmon4" },
631 {
QRGB(244,164, 96),
"sandybrown" },
632 {
QRGB( 46,139, 87),
"seagreen" },
633 {
QRGB( 84,255,159),
"seagreen1" },
634 {
QRGB( 78,238,148),
"seagreen2" },
635 {
QRGB( 67,205,128),
"seagreen3" },
636 {
QRGB( 46,139, 87),
"seagreen4" },
637 {
QRGB(255,245,238),
"seashell" },
638 {
QRGB(255,245,238),
"seashell1" },
639 {
QRGB(238,229,222),
"seashell2" },
640 {
QRGB(205,197,191),
"seashell3" },
641 {
QRGB(139,134,130),
"seashell4" },
642 {
QRGB(160, 82, 45),
"sienna" },
643 {
QRGB(255,130, 71),
"sienna1" },
644 {
QRGB(238,121, 66),
"sienna2" },
645 {
QRGB(205,104, 57),
"sienna3" },
646 {
QRGB(139, 71, 38),
"sienna4" },
647 {
QRGB(135,206,235),
"skyblue" },
648 {
QRGB(135,206,255),
"skyblue1" },
649 {
QRGB(126,192,238),
"skyblue2" },
650 {
QRGB(108,166,205),
"skyblue3" },
651 {
QRGB( 74,112,139),
"skyblue4" },
652 {
QRGB(106, 90,205),
"slateblue" },
653 {
QRGB(131,111,255),
"slateblue1" },
654 {
QRGB(122,103,238),
"slateblue2" },
655 {
QRGB(105, 89,205),
"slateblue3" },
656 {
QRGB( 71, 60,139),
"slateblue4" },
657 {
QRGB(112,128,144),
"slategray" },
658 {
QRGB(198,226,255),
"slategray1" },
659 {
QRGB(185,211,238),
"slategray2" },
660 {
QRGB(159,182,205),
"slategray3" },
661 {
QRGB(108,123,139),
"slategray4" },
662 {
QRGB(112,128,144),
"slategrey" },
663 {
QRGB(255,250,250),
"snow" },
664 {
QRGB(255,250,250),
"snow1" },
665 {
QRGB(238,233,233),
"snow2" },
666 {
QRGB(205,201,201),
"snow3" },
667 {
QRGB(139,137,137),
"snow4" },
668 {
QRGB( 0,255,127),
"springgreen" },
669 {
QRGB( 0,255,127),
"springgreen1" },
670 {
QRGB( 0,238,118),
"springgreen2" },
671 {
QRGB( 0,205,102),
"springgreen3" },
672 {
QRGB( 0,139, 69),
"springgreen4" },
673 {
QRGB( 70,130,180),
"steelblue" },
674 {
QRGB( 99,184,255),
"steelblue1" },
675 {
QRGB( 92,172,238),
"steelblue2" },
676 {
QRGB( 79,148,205),
"steelblue3" },
677 {
QRGB( 54,100,139),
"steelblue4" },
678 {
QRGB(210,180,140),
"tan" },
679 {
QRGB(255,165, 79),
"tan1" },
680 {
QRGB(238,154, 73),
"tan2" },
681 {
QRGB(205,133, 63),
"tan3" },
682 {
QRGB(139, 90, 43),
"tan4" },
683 {
QRGB(216,191,216),
"thistle" },
684 {
QRGB(255,225,255),
"thistle1" },
685 {
QRGB(238,210,238),
"thistle2" },
686 {
QRGB(205,181,205),
"thistle3" },
687 {
QRGB(139,123,139),
"thistle4" },
688 {
QRGB(255, 99, 71),
"tomato" },
689 {
QRGB(255, 99, 71),
"tomato1" },
690 {
QRGB(238, 92, 66),
"tomato2" },
691 {
QRGB(205, 79, 57),
"tomato3" },
692 {
QRGB(139, 54, 38),
"tomato4" },
693 {
QRGB( 64,224,208),
"turquoise" },
694 {
QRGB( 0,245,255),
"turquoise1" },
695 {
QRGB( 0,229,238),
"turquoise2" },
696 {
QRGB( 0,197,205),
"turquoise3" },
697 {
QRGB( 0,134,139),
"turquoise4" },
698 {
QRGB(238,130,238),
"violet" },
699 {
QRGB(208, 32,144),
"violetred" },
700 {
QRGB(255, 62,150),
"violetred1" },
701 {
QRGB(238, 58,140),
"violetred2" },
702 {
QRGB(205, 50,120),
"violetred3" },
703 {
QRGB(139, 34, 82),
"violetred4" },
704 {
QRGB(245,222,179),
"wheat" },
705 {
QRGB(255,231,186),
"wheat1" },
706 {
QRGB(238,216,174),
"wheat2" },
707 {
QRGB(205,186,150),
"wheat3" },
708 {
QRGB(139,126,102),
"wheat4" },
709 {
QRGB(255,255,255),
"white" },
710 {
QRGB(245,245,245),
"whitesmoke" },
711 {
QRGB(255,255, 0),
"yellow" },
712 {
QRGB(255,255, 0),
"yellow1" },
713 {
QRGB(238,238, 0),
"yellow2" },
714 {
QRGB(205,205, 0),
"yellow3" },
715 {
QRGB(139,139, 0),
"yellow4" },
716 {
QRGB(154,205, 50),
"yellowgreen" } };
739 int i =
qMax(
s.lastIndexOf(u
'/'),
s.lastIndexOf(u
'\\'));
742 auto checkChar = [](
QChar ch) ->
bool {
747 for (;
i <
s.size(); ++
i) {
748 if (checkChar(
s.at(
i))) {
750 }
else if (
start > 0)
775 bool gotQuote =
false;
805 return prefix ==
"c" ||
816 int *
cpp,
int *ncols,
int *
w,
int *
h)
824 if (sscanf_s(
buf,
"%d %d %d %d",
w,
h, ncols,
cpp) < 4)
826 if (sscanf(
buf,
"%d %d %d %d",
w,
h, ncols,
cpp) < 4)
830 if (*w <= 0 || *w > 32767 || *h <= 0 || *h > 32767 || *ncols <= 0 || *ncols > (64 * 64 * 64 * 64) || *cpp <= 0 || *cpp > 15)
845 if (cpp < 0 || cpp > 15)
855 image.setColorCount(ncols);
860 bool hasTransparency =
false;
862 for(currentColor=0; currentColor < ncols; ++currentColor) {
864 qCWarning(lcImageIo,
"XPM color specification missing");
869 buf =
buf.mid(
cpp).simplified().trimmed().toLower();
879 qCWarning(lcImageIo,
"XPM color specification is missing: %s",
buf.constData());
886 if (
color.isEmpty()) {
887 qCWarning(lcImageIo,
"XPM color value is missing from specification: %s",
buf.constData());
892 hasTransparency =
true;
893 int transparentColor = currentColor;
895 image.setColor(transparentColor, 0);
902 if (((
buf.size()-1) % 3) && (
buf[0] ==
'#')) {
903 buf.truncate(((
buf.size()-1) / 4 * 3) + 1);
911 image.setColor(currentColor, 0xff000000 | c_rgb);
928 for(
int y=0;
y<
h;
y++) {
930 qCWarning(lcImageIo,
"XPM pixels missing on image line %d",
y);
933 if (
image.depth() == 8) {
949 memcpy(
b, (
char *)
d,
cpp);
956 qCWarning(lcImageIo,
"XPM pixels missing on image line %d (possibly a C++ trigraph).",
y);
967 memcpy(
b, (
char *)
d,
cpp);
973 qCWarning(lcImageIo,
"XPM pixels missing on image line %d (possibly a C++ trigraph).",
y);
974 memset(
p, 0, (
w -
x)*4);
981 for (
int i =
state.size() - 1;
i >= 0; --
i)
984 while (
device->getChar(&
c) &&
c !=
';') {}
985 while (
device->getChar(&
c) &&
c !=
'\n') {}
1010 if ((readBytes =
device->readLine(
buf.data(),
buf.size())) < 0)
1016 while (readBytes > 0) {
1017 device->ungetChar(
buf.at(readBytes - 1));
1032struct CharBuffer : std::array<char, N>
1040 static const char code[] =
".#abcdefghijklmnopqrstuvwxyzABCD"
1041 "EFGHIJKLMNOPQRSTUVWXYZ0123456789";
1046 returnable[4] =
'\0';
1050 returnable[3] =
'\0';
1054 returnable[2] =
'\0';
1058 else if (
index == 64*44+21)
1063 returnable[1] =
'\0';
1066 return returnable.
data();
1073 if (!
device->isWritable())
1080 image = sourceImage;
1082#ifdef __cpp_lib_memory_resource
1085 std::pmr::map<QRgb, int> colorMap(&
res);
1087 std::map<QRgb, int> colorMap;
1090 const int w =
image.width();
1091 const int h =
image.height();
1095 for (
int y = 0;
y <
h; ++
y) {
1096 const QRgb *yp =
reinterpret_cast<const QRgb *
>(
image.constScanLine(
y));
1097 for (
int x = 0;
x <
w; ++
x) {
1098 const auto [
it, inserted] = colorMap.try_emplace(yp[
x], ncolors);
1106 for (
int k = 64; ncolors > k; k *= 64) {
1111 qCWarning(lcImageIo,
"Qt does not support writing XPM images with more than "
1112 "64^4 colors (requested: %d colors).", ncolors);
1121 <<
'\"' <<
w <<
' ' <<
h <<
' ' << ncolors <<
' ' <<
cpp <<
'\"';
1124 for (
const auto &[
color,
index] : colorMap) {
1133 for (
int y = 0;
y <
h; ++
y) {
1135 const QRgb *yp =
reinterpret_cast<const QRgb *
>(
image.constScanLine(
y));
1136 for (
int x = 0;
x <
w; ++
x)
1141 return (
s.status() == QTextStream::Ok);
1149bool QXpmHandler::readHeader()
1163 if (state == Ready && !readHeader()) {
1182 if (state != Error) {
1193 qCWarning(lcImageIo,
"QXpmHandler::canRead() called with no device");
1198 if (
device->
peek(head,
sizeof(head)) !=
sizeof(head))
1201 return qstrncmp(head,
"/* XPM", 6) == 0;
1208 return readImage(
image);
1230 if (state == Ready && !
const_cast<QXpmHandler*
>(
this)->readHeader())
1236 if (state == Ready && !
const_cast<QXpmHandler*
>(
this)->readHeader())
1254 fileName =
value.toString();
IOBluetoothDevice * device
constexpr char16_t unicode() const noexcept
Returns the numeric Unicode value of the QChar.
\inmodule QtCore \reentrant
qint64 peek(char *data, qint64 maxlen)
ImageOption
This enum describes the different options supported by QImageIOHandler.
static bool allocateImage(QSize size, QImage::Format format, QImage *image)
QIODevice * device() const
Returns the device currently assigned to the QImageIOHandler.
void setFormat(const QByteArray &format)
Sets the format of the QImageIOHandler to format.
Format
The following image formats are available in Qt.
@ Format_ARGB32_Premultiplied
Format format() const
Returns the format of the image.
QImage convertToFormat(Format f, Qt::ImageConversionFlags flags=Qt::AutoColor) const &
qsizetype size() const noexcept
const_reference at(qsizetype i) const noexcept
iterator insert(const Key &key, const T &value)
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
qsizetype size() const
Returns the number of characters in this string.
const QChar at(qsizetype i) const
Returns the character at the given index position in the string.
QChar * data()
Returns a pointer to the data stored in the QString.
static QString static QString asprintf(const char *format,...) Q_ATTRIBUTE_FORMAT_PRINTF(1
bool read(QImage *image) override
Read an image from the device, and stores it in image.
QVariant option(ImageOption option) const override
Returns the value assigned to option as a QVariant.
bool supportsOption(ImageOption option) const override
Returns true if the QImageIOHandler supports the option option; otherwise returns false.
bool canRead() const override
Returns true if an image can be read from the device (i.e., the image format is supported,...
void setOption(ImageOption option, const QVariant &value) override
Sets the option option with the value value.
bool write(const QImage &image) override
Writes the image image to the assigned device.
QSet< QString >::iterator it
std::list< QString >::iterator Name
Combined button and popup list for selecting options.
constexpr bool isAsciiLetterOrNumber(char32_t c) noexcept
QTextStream & endl(QTextStream &stream)
Writes '\n' to the stream and flushes the stream.
int qstrncmp(const char *str1, const char *str2, size_t len)
Q_CORE_EXPORT int qstrcmp(const char *str1, const char *str2)
constexpr QStaticByteArrayMatcher< N > qMakeStaticByteArrayMatcher(const char(&pattern)[N]) noexcept
std::optional< QRgb > qt_get_hex_rgb(const char *name)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define qCWarning(category,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
constexpr const T & qMax(const T &a, const T &b)
GLboolean GLboolean GLboolean b
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLenum GLuint GLenum GLsizei const GLchar * buf
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLuint GLintptr offset
GLint GLsizei GLsizei GLenum format
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLsizei GLchar * source
QT_BEGIN_NAMESPACE typedef unsigned int QRgb
constexpr int qRed(QRgb rgb)
constexpr int qGreen(QRgb rgb)
constexpr int qBlue(QRgb rgb)
constexpr int qAlpha(QRgb rgb)
unsigned long long quint64
static const struct XPMRGBData xpmRgbTbl[]
bool operator<(const char *name, const XPMRGBData &data)
static bool write_xpm_image(const QImage &sourceImage, QIODevice *device, const QString &fileName)
static bool is_xpm_color_spec_prefix(const QByteArray &prefix)
static std::optional< QRgb > qt_get_named_xpm_rgb(const char *name_no_space)
static bool read_xpm_string(QByteArray &buf, QIODevice *d, const char *const *source, int &index, QByteArray &state)
static const char * xpm_color_name(int cpp, int index, CharBuffer< 5 > &&returnable={})
bool qt_read_xpm_image_or_array(QIODevice *device, const char *const *source, QImage &image)
static bool read_xpm_header(QIODevice *device, const char *const *source, int &index, QByteArray &state, int *cpp, int *ncols, int *w, int *h)
static QString fbname(const QString &fileName)
static quint64 xpmHash(const QString &str)
static bool read_xpm_body(QIODevice *device, const char *const *source, int &index, QByteArray &state, int cpp, int ncols, int w, int h, QImage &image)
static const int xpmRgbTblSize
ASSERT failure in file div cpp
static const auto matcher
[0]
qsizetype indexOf(const AT &t, qsizetype from=0) const noexcept