OpenCoverage

qquickpixmapcache.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickpixmapcache.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11const QLatin1String QQuickPixmap::itemGrabberScheme = QLatin1String("itemgrabber");-
12-
13-
14static const bool qsg_leak_check = !qEnvironmentVariableIsEmpty("QML_LEAK_CHECK");-
15-
16-
17-
18static int cache_limit = 2048 * 1024;-
19-
20static inline QString imageProviderId(const QUrl &url)-
21{-
22 return
executed 16258 times by 5 tests: return url.host();
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
url.host();
executed 16258 times by 5 tests: return url.host();
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
16258
23}-
24-
25static inline QString imageId(const QUrl &url)-
26{-
27 return
executed 8116 times by 5 tests: return url.toString(QUrl::RemoveScheme | QUrl::RemoveAuthority).mid(1);
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
url.toString(QUrl::RemoveScheme | QUrl::RemoveAuthority).mid(1);
executed 8116 times by 5 tests: return url.toString(QUrl::RemoveScheme | QUrl::RemoveAuthority).mid(1);
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
8116
28}-
29-
30QQuickDefaultTextureFactory::QQuickDefaultTextureFactory(const QImage &image)-
31{-
32 if (image.format() == QImage::Format_ARGB32_Premultiplied
image.format()..._PremultipliedDescription
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qquickanimatedimage
  • tst_qquickitem2
FALSEevaluated 8912 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
22-8912
33 || image.format() == QImage::Format_RGB32
image.format()...::Format_RGB32Description
TRUEevaluated 8306 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
FALSEevaluated 606 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
) {
606-8306
34 im = image;-
35 }
executed 8328 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickpixmapcache
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
else {
8328
36 im = image.convertToFormat(QImage::Format_ARGB32_Premultiplied);-
37 }
executed 606 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
606
38 size = im.size();-
39}
executed 8934 times by 38 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
8934
40-
41-
42QSGTexture *QQuickDefaultTextureFactory::createTexture(QQuickWindow *window) const-
43{-
44 QSGTexture *t = window->createTextureFromImage(im, QQuickWindow::TextureCanUseAtlas);-
45 static bool transient = qEnvironmentVariableIsSet("QSG_TRANSIENT_IMAGES");-
46 if (transient
transientDescription
TRUEnever evaluated
FALSEevaluated 367 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
)
0-367
47 const_cast<
never executed: const_cast<QQuickDefaultTextureFactory *>(this)->im = QImage();
QQuickDefaultTextureFactory *>(this)->im = QImage();
never executed: const_cast<QQuickDefaultTextureFactory *>(this)->im = QImage();
0
48 return
executed 367 times by 8 tests: return t;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
t;
executed 367 times by 8 tests: return t;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
367
49}-
50-
51class QQuickPixmapReader;-
52class QQuickPixmapData;-
53class QQuickPixmapReply : public QObject-
54{-
55 public:-
56#pragma GCC diagnostic push-
57 -
58#pragma GCC diagnostic ignored "-Wsuggest-override"-
59 static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private:-
60#pragma GCC diagnostic ignored "-Wattributes"-
61 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
62#pragma GCC diagnostic pop-
63 struct QPrivateSignal {};-
64public:-
65 enum ReadError { NoError, Loading, Decoding };-
66-
67 QQuickPixmapReply(QQuickPixmapData *);-
68 ~QQuickPixmapReply();-
69-
70 QQuickPixmapData *data;-
71 QQmlEngine *engineForReader;-
72 QSize requestSize;-
73 QUrl url;-
74-
75 bool loading;-
76 QQuickImageProviderOptions providerOptions;-
77 int redirectCount;-
78-
79 class Event : public QEvent {-
80 public:-
81 Event(ReadError, const QString &, const QSize &, QQuickTextureFactory *factory);-
82 ~Event();-
83-
84 ReadError error;-
85 QString errorString;-
86 QSize implicitSize;-
87 QQuickTextureFactory *textureFactory;-
88 };-
89 void postReply(ReadError, const QString &, const QSize &, QQuickTextureFactory *factory);-
90-
91-
92public :-
93 void finished();-
94 void downloadProgress(qint64, qint64);-
95-
96protected:-
97 bool event(QEvent *event) override;-
98-
99private:-
100 QQuickPixmapReply(const QQuickPixmapReply &) = delete; QQuickPixmapReply &operator=(const QQuickPixmapReply &) = delete;-
101-
102public:-
103 static int finishedIndex;-
104 static int downloadProgressIndex;-
105};-
106-
107class QQuickPixmapReaderThreadObject : public QObject {-
108 public:-
109#pragma GCC diagnostic push-
110 -
111#pragma GCC diagnostic ignored "-Wsuggest-override"-
112 static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private:-
113#pragma GCC diagnostic ignored "-Wattributes"-
114 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
115#pragma GCC diagnostic pop-
116 struct QPrivateSignal {};-
117public:-
118 QQuickPixmapReaderThreadObject(QQuickPixmapReader *);-
119 void processJobs();-
120 bool event(QEvent *e) override;-
121public :-
122 void asyncResponseFinished(QQuickImageResponse *response);-
123private :-
124 void networkRequestDone();-
125 void asyncResponseFinished();-
126private:-
127 QQuickPixmapReader *reader;-
128};-
129-
130class QQuickPixmapData;-
131class QQuickPixmapReader : public QThread-
132{-
133 public:-
134#pragma GCC diagnostic push-
135 -
136#pragma GCC diagnostic ignored "-Wsuggest-override"-
137 static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private:-
138#pragma GCC diagnostic ignored "-Wattributes"-
139 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
140#pragma GCC diagnostic pop-
141 struct QPrivateSignal {};-
142public:-
143 QQuickPixmapReader(QQmlEngine *eng);-
144 ~QQuickPixmapReader();-
145-
146 QQuickPixmapReply *getImage(QQuickPixmapData *);-
147 void cancel(QQuickPixmapReply *rep);-
148-
149 static QQuickPixmapReader *instance(QQmlEngine *engine);-
150 static QQuickPixmapReader *existingInstance(QQmlEngine *engine);-
151-
152protected:-
153 void run() override;-
154-
155private:-
156 friend class QQuickPixmapReaderThreadObject;-
157 void processJobs();-
158 void processJob(QQuickPixmapReply *, const QUrl &, const QString &, QQuickImageProvider::ImageType, QQuickImageProvider *);-
159-
160 void networkRequestDone(QNetworkReply *);-
161-
162 void asyncResponseFinished(QQuickImageResponse *);-
163-
164 QList<QQuickPixmapReply*> jobs;-
165 QList<QQuickPixmapReply*> cancelled;-
166 QQmlEngine *engine;-
167 QObject *eventLoopQuitHack;-
168-
169 QMutex mutex;-
170 QQuickPixmapReaderThreadObject *threadObject;-
171 QWaitCondition waitCondition;-
172-
173-
174 QNetworkAccessManager *networkAccessManager();-
175 QNetworkAccessManager *accessManager;-
176 QHash<QNetworkReply*,QQuickPixmapReply*> networkJobs;-
177-
178 QHash<QQuickImageResponse*,QQuickPixmapReply*> asyncResponses;-
179-
180 static int replyDownloadProgress;-
181 static int replyFinished;-
182 static int downloadProgress;-
183 static int threadNetworkRequestDone;-
184 static QHash<QQmlEngine *,QQuickPixmapReader*> readers;-
185public:-
186 static QMutex readerMutex;-
187};-
188-
189class QQuickPixmapData-
190{-
191public:-
192 QQuickPixmapData(QQuickPixmap *pixmap, const QUrl &u, const QSize &s, const QQuickImageProviderOptions &po, const QString &e)-
193 : refCount(1), inCache(false), pixmapStatus(QQuickPixmap::Error),-
194 url(u), errorString(e), requestSize(s),-
195 providerOptions(po), appliedTransform(QQuickImageProviderOptions::UsePluginDefaultTransform),-
196 textureFactory(nullptr), reply(nullptr), prevUnreferenced(nullptr),-
197 prevUnreferencedPtr(nullptr), nextUnreferenced(nullptr)-
198 {-
199 declarativePixmaps.insert(pixmap);-
200 }
executed 106 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
106
201-
202 QQuickPixmapData(QQuickPixmap *pixmap, const QUrl &u, const QSize &r, const QQuickImageProviderOptions &po, QQuickImageProviderOptions::AutoTransform aTransform)-
203 : refCount(1), inCache(false), pixmapStatus(QQuickPixmap::Loading),-
204 url(u), requestSize(r),-
205 providerOptions(po), appliedTransform(aTransform),-
206 textureFactory(nullptr), reply(nullptr), prevUnreferenced(nullptr), prevUnreferencedPtr(nullptr),-
207 nextUnreferenced(nullptr)-
208 {-
209 declarativePixmaps.insert(pixmap);-
210 }
executed 2376 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
2376
211-
212 QQuickPixmapData(QQuickPixmap *pixmap, const QUrl &u, QQuickTextureFactory *texture,-
213 const QSize &s, const QSize &r, const QQuickImageProviderOptions &po, QQuickImageProviderOptions::AutoTransform aTransform)-
214 : refCount(1), inCache(false), pixmapStatus(QQuickPixmap::Ready),-
215 url(u), implicitSize(s), requestSize(r),-
216 providerOptions(po), appliedTransform(aTransform),-
217 textureFactory(texture), reply(nullptr), prevUnreferenced(nullptr),-
218 prevUnreferencedPtr(nullptr), nextUnreferenced(nullptr)-
219 {-
220 declarativePixmaps.insert(pixmap);-
221 }
executed 8814 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
8814
222-
223 QQuickPixmapData(QQuickPixmap *pixmap, QQuickTextureFactory *texture)-
224 : refCount(1), inCache(false), pixmapStatus(QQuickPixmap::Ready),-
225 appliedTransform(QQuickImageProviderOptions::UsePluginDefaultTransform),-
226 textureFactory(texture), reply(nullptr), prevUnreferenced(nullptr),-
227 prevUnreferencedPtr(nullptr), nextUnreferenced(nullptr)-
228 {-
229 if (texture
textureDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickanimatedimage
FALSEnever evaluated
)
0-12
230 requestSize = implicitSize = texture->textureSize();
executed 12 times by 1 test: requestSize = implicitSize = texture->textureSize();
Executed by:
  • tst_qquickanimatedimage
12
231 declarativePixmaps.insert(pixmap);-
232 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qquickanimatedimage
12
233-
234 ~QQuickPixmapData()-
235 {-
236 while (!declarativePixmaps.isEmpty()
!declarativePixmaps.isEmpty()Description
TRUEevaluated 1278 times by 3 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
FALSEevaluated 11308 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
) {
1278-11308
237 QQuickPixmap *referencer = declarativePixmaps.first();-
238 declarativePixmaps.remove(referencer);-
239 referencer->d = nullptr;-
240 }
executed 1278 times by 3 tests: end of block
Executed by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
1278
241 delete textureFactory;-
242 }
executed 11308 times by 40 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
11308
243-
244 int cost() const;-
245 void addref();-
246 void release();-
247 void addToCache();-
248 void removeFromCache();-
249-
250 uint refCount;-
251-
252 bool inCache:1;-
253-
254 QQuickPixmap::Status pixmapStatus;-
255 QUrl url;-
256 QString errorString;-
257 QSize implicitSize;-
258 QSize requestSize;-
259 QQuickImageProviderOptions providerOptions;-
260 QQuickImageProviderOptions::AutoTransform appliedTransform;-
261-
262 QQuickTextureFactory *textureFactory;-
263-
264 QIntrusiveList<QQuickPixmap, &QQuickPixmap::dataListNode> declarativePixmaps;-
265 QQuickPixmapReply *reply;-
266-
267 QQuickPixmapData *prevUnreferenced;-
268 QQuickPixmapData**prevUnreferencedPtr;-
269 QQuickPixmapData *nextUnreferenced;-
270};-
271-
272int QQuickPixmapReply::finishedIndex = -1;-
273int QQuickPixmapReply::downloadProgressIndex = -1;-
274-
275-
276QHash<QQmlEngine *,QQuickPixmapReader*> QQuickPixmapReader::readers;-
277QMutex QQuickPixmapReader::readerMutex;-
278-
279int QQuickPixmapReader::replyDownloadProgress = -1;-
280int QQuickPixmapReader::replyFinished = -1;-
281int QQuickPixmapReader::downloadProgress = -1;-
282int QQuickPixmapReader::threadNetworkRequestDone = -1;-
283-
284-
285void QQuickPixmapReply::postReply(ReadError error, const QString &errorString,-
286 const QSize &implicitSize, QQuickTextureFactory *factory)-
287{-
288 loading = false;-
289 QCoreApplication::postEvent(this, new Event(error, errorString, implicitSize, factory));-
290}
executed 142 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
142
291-
292QQuickPixmapReply::Event::Event(ReadError e, const QString &s, const QSize &iSize, QQuickTextureFactory *factory)-
293 : QEvent(QEvent::User), error(e), errorString(s), implicitSize(iSize), textureFactory(factory)-
294{-
295}
executed 142 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
142
296-
297QQuickPixmapReply::Event::~Event()-
298{-
299 delete textureFactory;-
300}
executed 142 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
142
301-
302-
303QNetworkAccessManager *QQuickPixmapReader::networkAccessManager()-
304{-
305 if (!accessManager
!accessManagerDescription
TRUEevaluated 32 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 299 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
32-299
306 ((threadObject) ? static_cast<void>(0) : qt_assert("threadObject", __FILE__, 360));-
307 accessManager = QQmlEnginePrivate::get(engine)->createNetworkAccessManager(threadObject);-
308 }
executed 32 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
32
309 return
executed 331 times by 8 tests: return accessManager;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
accessManager;
executed 331 times by 8 tests: return accessManager;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
331
310}-
311-
312-
313static void maybeRemoveAlpha(QImage *image)-
314{-
315-
316 if (image->hasAlphaChannel()
image->hasAlphaChannel()Description
TRUEevaluated 570 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
FALSEevaluated 184 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
&& image->data_ptr()
image->data_ptr()Description
TRUEevaluated 570 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
FALSEnever evaluated
0-570
317 && !image->data_ptr()->checkForAlphaPixels()
!image->data_p...rAlphaPixels()Description
TRUEevaluated 34 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
FALSEevaluated 536 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
) {
34-536
318 switch (image->format()) {-
319 case
never executed: case QImage::Format_RGBA8888:
QImage::Format_RGBA8888:
never executed: case QImage::Format_RGBA8888:
0
320 case
never executed: case QImage::Format_RGBA8888_Premultiplied:
QImage::Format_RGBA8888_Premultiplied:
never executed: case QImage::Format_RGBA8888_Premultiplied:
0
321 *image = image->convertToFormat(QImage::Format_RGBX8888);-
322 break;
never executed: break;
0
323 case
never executed: case QImage::Format_A2BGR30_Premultiplied:
QImage::Format_A2BGR30_Premultiplied:
never executed: case QImage::Format_A2BGR30_Premultiplied:
0
324 *image = image->convertToFormat(QImage::Format_BGR30);-
325 break;
never executed: break;
0
326 case
never executed: case QImage::Format_A2RGB30_Premultiplied:
QImage::Format_A2RGB30_Premultiplied:
never executed: case QImage::Format_A2RGB30_Premultiplied:
0
327 *image = image->convertToFormat(QImage::Format_RGB30);-
328 break;
never executed: break;
0
329 default
executed 34 times by 3 tests: default:
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
:
executed 34 times by 3 tests: default:
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
34
330 *image = image->convertToFormat(QImage::Format_RGB32);-
331 break;
executed 34 times by 3 tests: break;
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_scenegraph
34
332 }-
333 }-
334}
executed 754 times by 35 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
754
335-
336static bool readImage(const QUrl& url, QIODevice *dev, QImage *image, QString *errorString, QSize *impsize,-
337 const QSize &requestSize, const QQuickImageProviderOptions &providerOptions,-
338 QQuickImageProviderOptions::AutoTransform *appliedTransform = nullptr)-
339{-
340 QImageReader imgio(dev);-
341 if (providerOptions.autoTransform() != QQuickImageProviderOptions::UsePluginDefaultTransform
providerOption...faultTransformDescription
TRUEnever evaluated
FALSEevaluated 754 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
)
0-754
342 imgio.setAutoTransform(providerOptions.autoTransform() == QQuickImageProviderOptions::ApplyTransform);
never executed: imgio.setAutoTransform(providerOptions.autoTransform() == QQuickImageProviderOptions::ApplyTransform);
0
343 else if (appliedTransform
appliedTransformDescription
TRUEevaluated 698 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
FALSEevaluated 56 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
)
56-698
344 *
executed 698 times by 34 tests: *appliedTransform = imgio.autoTransform() ? QQuickImageProviderOptions::ApplyTransform : QQuickImageProviderOptions::DoNotApplyTransform;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
appliedTransform = imgio.autoTransform()
imgio.autoTransform()Description
TRUEnever evaluated
FALSEevaluated 698 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
? QQuickImageProviderOptions::ApplyTransform : QQuickImageProviderOptions::DoNotApplyTransform;
executed 698 times by 34 tests: *appliedTransform = imgio.autoTransform() ? QQuickImageProviderOptions::ApplyTransform : QQuickImageProviderOptions::DoNotApplyTransform;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
0-698
345-
346 QSize scSize = QQuickImageProviderWithOptions::loadSize(imgio.size(), requestSize, imgio.format(), providerOptions);-
347 if (scSize.isValid()
scSize.isValid()Description
TRUEevaluated 36 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_sharedimage
FALSEevaluated 718 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
)
36-718
348 imgio.setScaledSize(scSize);
executed 36 times by 5 tests: imgio.setScaledSize(scSize);
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_sharedimage
36
349-
350 if (impsize
impsizeDescription
TRUEevaluated 754 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
FALSEnever evaluated
)
0-754
351 *
executed 754 times by 35 tests: *impsize = imgio.size();
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
impsize = imgio.size();
executed 754 times by 35 tests: *impsize = imgio.size();
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
754
352-
353 if (imgio.read(image)
imgio.read(image)Description
TRUEevaluated 754 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
FALSEnever evaluated
) {
0-754
354 maybeRemoveAlpha(image);-
355 if (impsize
impsizeDescription
TRUEevaluated 754 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
FALSEnever evaluated
&& impsize->width() < 0
impsize->width() < 0Description
TRUEnever evaluated
FALSEevaluated 754 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
)
0-754
356 *
never executed: *impsize = image->size();
impsize = image->size();
never executed: *impsize = image->size();
0
357 return
executed 754 times by 35 tests: return true;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
true;
executed 754 times by 35 tests: return true;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
754
358 } else {-
359 if (errorString
errorStringDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
360 *
never executed: *errorString = QQuickPixmap::tr("Error decoding: %1: %2").arg(url.toString()) .arg(imgio.errorString());
errorString = QQuickPixmap::tr("Error decoding: %1: %2").arg(url.toString())
never executed: *errorString = QQuickPixmap::tr("Error decoding: %1: %2").arg(url.toString()) .arg(imgio.errorString());
0
361 .arg(imgio.errorString());
never executed: *errorString = QQuickPixmap::tr("Error decoding: %1: %2").arg(url.toString()) .arg(imgio.errorString());
0
362 return
never executed: return false;
false;
never executed: return false;
0
363 }-
364}-
365-
366static QStringList fromLatin1List(const QList<QByteArray> &list)-
367{-
368 QStringList res;-
369 res.reserve(list.size());-
370 for (const QByteArray &item : list)-
371 res.append(QString::fromLatin1(item));
executed 952 times by 34 tests: res.append(QString::fromLatin1(item));
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
952
372 return
executed 68 times by 34 tests: return res;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
res;
executed 68 times by 34 tests: return res;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
68
373}-
374-
375class BackendSupport-
376{-
377public:-
378 BackendSupport()-
379 {-
380 delete QSGContext::createTextureFactoryFromImage(QImage());-
381 hasOpenGL = QQuickWindow::sceneGraphBackend().isEmpty();-
382 QList<QByteArray> list;-
383 if (hasOpenGL
hasOpenGLDescription
TRUEevaluated 68 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
FALSEnever evaluated
)
0-68
384 list.append(QSGTextureReader::supportedFileFormats());
executed 68 times by 34 tests: list.append(QSGTextureReader::supportedFileFormats());
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
68
385 list.append(QImageReader::supportedImageFormats());-
386 fileSuffixes = fromLatin1List(list);-
387 }
executed 68 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
68
388 bool hasOpenGL;-
389 QStringList fileSuffixes;-
390};-
391namespace { namespace Q_QGS_backendSupport { typedef BackendSupport Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 68 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 68 times by 34 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
}
executed 68 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 730 times by 34 tests: return &holder.value;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
&holder.value;
executed 730 times by 34 tests: return &holder.value;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
} } } static QGlobalStatic<BackendSupport, Q_QGS_backendSupport::innerFunction, Q_QGS_backendSupport::guard> backendSupport;;
0-730
392-
393static QString existingImageFileForPath(const QString &localFile)-
394{-
395-
396 QFileInfo fi(localFile);-
397 if (!fi.suffix().isEmpty()
!fi.suffix().isEmpty()Description
TRUEevaluated 800 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickimage
|| fi.exists()
fi.exists()Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickimage
)
0-800
398 return
executed 800 times by 35 tests: return localFile;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
localFile;
executed 800 times by 35 tests: return localFile;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
800
399-
400 QString tryFile = localFile + ([]() noexcept -> QString { enum { Size = sizeof(u"" ".xxxx")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ".xxxx" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());-
401 const int suffixIdx = localFile.length() + 1;-
402 for (const QString &suffix : backendSupport()->fileSuffixes) {-
403 tryFile.replace(suffixIdx, 10, suffix);-
404 if (QFileInfo::exists(tryFile)
QFileInfo::exists(tryFile)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickimage
FALSEevaluated 88 times by 1 test
Evaluated by:
  • tst_qquickimage
)
10-88
405 return
executed 10 times by 1 test: return tryFile;
Executed by:
  • tst_qquickimage
tryFile;
executed 10 times by 1 test: return tryFile;
Executed by:
  • tst_qquickimage
10
406 }
executed 88 times by 1 test: end of block
Executed by:
  • tst_qquickimage
88
407 return
executed 2 times by 1 test: return localFile;
Executed by:
  • tst_qquickimage
localFile;
executed 2 times by 1 test: return localFile;
Executed by:
  • tst_qquickimage
2
408}-
409-
410QQuickPixmapReader::QQuickPixmapReader(QQmlEngine *eng)-
411: QThread(eng), engine(eng), threadObject(nullptr)-
412-
413, accessManager(nullptr)-
414-
415{-
416 eventLoopQuitHack = new QObject;-
417 eventLoopQuitHack->moveToThread(this);-
418 connect(eventLoopQuitHack, qFlagLocation("2""destroyed(QObject*)" "\0" __FILE__ ":" "472"), qFlagLocation("1""quit()" "\0" __FILE__ ":" "472"), Qt::DirectConnection);-
419 start(QThread::LowestPriority);-
420}
executed 80 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
80
421-
422QQuickPixmapReader::~QQuickPixmapReader()-
423{-
424 readerMutex.lock();-
425 readers.remove(engine);-
426 readerMutex.unlock();-
427-
428 mutex.lock();-
429-
430 for (QQuickPixmapReply *reply : qAsConst(jobs)) {-
431 if (reply->data
reply->dataDescription
TRUEnever evaluated
FALSEnever evaluated
&& reply->data->reply == reply
reply->data->reply == replyDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
432 reply->data->reply = nullptr;
never executed: reply->data->reply = nullptr;
0
433 delete reply;-
434 }
never executed: end of block
0
435 jobs.clear();-
436-
437-
438 const auto cancelJob = [this](QQuickPixmapReply *reply) {-
439 if (reply->loading
reply->loadingDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickpixmapcache
FALSEnever evaluated
) {
0-2
440 cancelled.append(reply);-
441 reply->data = nullptr;-
442 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickpixmapcache
2
443 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickpixmapcache
;
2
444-
445 for (auto *reply : qAsConst(networkJobs))-
446 cancelJob(reply);
executed 2 times by 1 test: cancelJob(reply);
Executed by:
  • tst_qquickpixmapcache
2
447-
448 for (auto *reply : qAsConst(asyncResponses))-
449 cancelJob(reply);
never executed: cancelJob(reply);
0
450-
451 if (threadObject
threadObjectDescription
TRUEevaluated 80 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEnever evaluated
) threadObject->processJobs();
executed 80 times by 10 tests: threadObject->processJobs();
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
0-80
452 mutex.unlock();-
453-
454 eventLoopQuitHack->deleteLater();-
455 wait();-
456}
executed 80 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
80
457-
458-
459void QQuickPixmapReader::networkRequestDone(QNetworkReply *reply)-
460{-
461 QQuickPixmapReply *job = networkJobs.take(reply);-
462-
463 if (job
jobDescription
TRUEevaluated 62 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 265 times by 3 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
) {
62-265
464 job->redirectCount++;-
465 if (job->redirectCount < 16
job->redirectCount < 16Description
TRUEevaluated 62 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
FALSEnever evaluated
) {
0-62
466 QVariant redirect = reply->attribute(QNetworkRequest::RedirectionTargetAttribute);-
467 if (redirect.isValid()
redirect.isValid()Description
TRUEnever evaluated
FALSEevaluated 62 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
0-62
468 QUrl url = reply->url().resolved(redirect.toUrl());-
469 QNetworkRequest req(url);-
470 req.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true);-
471-
472 reply->deleteLater();-
473 reply = networkAccessManager()->get(req);-
474-
475 QMetaObject::connect(reply, replyDownloadProgress, job, downloadProgress);-
476 QMetaObject::connect(reply, replyFinished, threadObject, threadNetworkRequestDone);-
477-
478 networkJobs.insert(reply, job);-
479 return;
never executed: return;
0
480 }-
481 }
executed 62 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
62
482-
483 QImage image;-
484 QQuickPixmapReply::ReadError error = QQuickPixmapReply::NoError;-
485 QString errorString;-
486 QSize readSize;-
487 if (reply->error()
reply->error()Description
TRUEevaluated 16 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickpixmapcache
  • tst_qquicktextedit
FALSEevaluated 46 times by 5 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
16-46
488 error = QQuickPixmapReply::Loading;-
489 errorString = reply->errorString();-
490 }
executed 16 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickpixmapcache
  • tst_qquicktextedit
else {
16
491 QByteArray all = reply->readAll();-
492 QBuffer buff(&all);-
493 buff.open(QIODevice::ReadOnly);-
494 if (!readImage(reply->url(), &buff, &image, &errorString, &readSize, job->requestSize, job->providerOptions)
!readImage(rep...oviderOptions)Description
TRUEnever evaluated
FALSEevaluated 46 times by 5 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
)
0-46
495 error = QQuickPixmapReply::Decoding;
never executed: error = QQuickPixmapReply::Decoding;
0
496 }
executed 46 times by 5 tests: end of block
Executed by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
46
497-
498 mutex.lock();-
499 if (!cancelled.contains(job)
!cancelled.contains(job)Description
TRUEevaluated 62 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
FALSEnever evaluated
)
0-62
500 job->postReply(error, errorString, readSize, QQuickTextureFactory::textureFactoryForImage(image));
executed 62 times by 6 tests: job->postReply(error, errorString, readSize, QQuickTextureFactory::textureFactoryForImage(image));
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
62
501 mutex.unlock();-
502 }
executed 62 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
62
503 reply->deleteLater();-
504-
505-
506 threadObject->processJobs();-
507}
executed 327 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
327
508-
509-
510void QQuickPixmapReader::asyncResponseFinished(QQuickImageResponse *response)-
511{-
512 QQuickPixmapReply *job = asyncResponses.take(response);-
513-
514 if (job
jobDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
FALSEnever evaluated
) {
0-16
515 QQuickTextureFactory *t = nullptr;-
516 QQuickPixmapReply::ReadError error = QQuickPixmapReply::NoError;-
517 QString errorString;-
518 if (!response->errorString().isEmpty()
!response->err...ng().isEmpty()Description
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
) {
0-16
519 error = QQuickPixmapReply::Loading;-
520 errorString = response->errorString();-
521 }
never executed: end of block
else {
0
522 t = response->textureFactory();-
523 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_qquickimageprovider
16
524 mutex.lock();-
525 if (!cancelled.contains(job)
!cancelled.contains(job)Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
FALSEnever evaluated
)
0-16
526 job->postReply(error, errorString, t ? t->textureSize() : QSize(), t);
executed 16 times by 1 test: job->postReply(error, errorString, t ? t->textureSize() : QSize(), t);
Executed by:
  • tst_qquickimageprovider
16
527 else-
528 delete t;
never executed: delete t;
0
529 mutex.unlock();-
530 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_qquickimageprovider
16
531 response->deleteLater();-
532-
533-
534 threadObject->processJobs();-
535}
executed 16 times by 1 test: end of block
Executed by:
  • tst_qquickimageprovider
16
536-
537QQuickPixmapReaderThreadObject::QQuickPixmapReaderThreadObject(QQuickPixmapReader *i)-
538: reader(i)-
539{-
540}
executed 80 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
80
541-
542void QQuickPixmapReaderThreadObject::processJobs()-
543{-
544 QCoreApplication::postEvent(this, new QEvent(QEvent::User));-
545}
executed 2968 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
2968
546-
547bool QQuickPixmapReaderThreadObject::event(QEvent *e)-
548{-
549 if (e->type() == QEvent::User
e->type() == QEvent::UserDescription
TRUEevaluated 2966 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 48 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
48-2966
550 reader->processJobs();-
551 return
executed 2966 times by 10 tests: return true;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
true;
executed 2966 times by 10 tests: return true;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
2966
552 } else {-
553 return
executed 48 times by 9 tests: return QObject::event(e);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
QObject::event(e);
executed 48 times by 9 tests: return QObject::event(e);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
48
554 }-
555}-
556-
557void QQuickPixmapReaderThreadObject::networkRequestDone()-
558{-
559-
560 QNetworkReply *reply = static_cast<QNetworkReply *>(sender());-
561 reader->networkRequestDone(reply);-
562-
563}
executed 327 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
327
564-
565void QQuickPixmapReaderThreadObject::asyncResponseFinished(QQuickImageResponse *response)-
566{-
567 reader->asyncResponseFinished(response);-
568}
executed 16 times by 1 test: end of block
Executed by:
  • tst_qquickimageprovider
16
569-
570void QQuickPixmapReaderThreadObject::asyncResponseFinished()-
571{-
572 QQuickImageResponse *response = static_cast<QQuickImageResponse *>(sender());-
573 asyncResponseFinished(response);-
574}
executed 8 times by 1 test: end of block
Executed by:
  • tst_qquickimageprovider
8
575-
576void QQuickPixmapReader::processJobs()-
577{-
578 QMutexLocker locker(&mutex);-
579-
580 while (true) {-
581 if (cancelled.isEmpty()
cancelled.isEmpty()Description
TRUEevaluated 3244 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 259 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
&& jobs.isEmpty()
jobs.isEmpty()Description
TRUEevaluated 3046 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 198 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
)
198-3244
582 return;
executed 3046 times by 10 tests: return;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
3046
583-
584-
585 if (!cancelled.isEmpty()
!cancelled.isEmpty()Description
TRUEevaluated 259 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
FALSEevaluated 198 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
) {
198-259
586-
587 for (int i = 0; i < cancelled.count()
i < cancelled.count()Description
TRUEevaluated 269 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
FALSEevaluated 259 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
; ++i) {
259-269
588 QQuickPixmapReply *job = cancelled.at(i);-
589 QNetworkReply *reply = networkJobs.key(job, 0);-
590 if (reply
replyDescription
TRUEevaluated 269 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
FALSEnever evaluated
) {
0-269
591 networkJobs.remove(reply);-
592 if (reply->isRunning()
reply->isRunning()Description
TRUEevaluated 269 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
FALSEnever evaluated
) {
0-269
593-
594 reply->close();-
595 }
executed 269 times by 5 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
269
596 }
executed 269 times by 5 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
else {
269
597 QQuickImageResponse *asyncResponse = asyncResponses.key(job);-
598 if (asyncResponse
asyncResponseDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
599 asyncResponses.remove(asyncResponse);-
600 asyncResponse->cancel();-
601 }
never executed: end of block
0
602 }
never executed: end of block
0
603 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEevaluated 269 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
) { QQuickProfiler::pixmapStateChanged<QQuickProfiler::PixmapLoadingError>(job->url); }
never executed: end of block
else (
executed 269 times by 5 tests: (void)0;
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
void)0;
executed 269 times by 5 tests: (void)0;
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
0-269
604-
605 job->deleteLater();-
606 }
executed 269 times by 5 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
269
607 cancelled.clear();-
608-
609 }
executed 259 times by 5 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
259
610-
611 if (!jobs.isEmpty()
!jobs.isEmpty()Description
TRUEevaluated 411 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 46 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
) {
46-411
612-
613 bool usableJob = false;-
614 for (int i = jobs.count() - 1; !usableJob
!usableJobDescription
TRUEevaluated 411 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 411 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
&& i >= 0
i >= 0Description
TRUEevaluated 411 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEnever evaluated
; i--) {
0-411
615 QQuickPixmapReply *job = jobs.at(i);-
616 const QUrl url = job->url;-
617 QString localFile;-
618 QQuickImageProvider::ImageType imageType = QQuickImageProvider::Invalid;-
619 QQuickImageProvider *provider = nullptr;-
620-
621 if (url.scheme() == QLatin1String("image")
url.scheme() =...tring("image")Description
TRUEevaluated 64 times by 3 tests
Evaluated by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
FALSEevaluated 347 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
) {
64-347
622 provider = static_cast<QQuickImageProvider *>(engine->imageProvider(imageProviderId(url)));-
623 if (provider
providerDescription
TRUEevaluated 62 times by 3 tests
Evaluated by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
)
2-62
624 imageType = provider->imageType();
executed 62 times by 3 tests: imageType = provider->imageType();
Executed by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
62
625-
626 usableJob = true;-
627 }
executed 64 times by 3 tests: end of block
Executed by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
else {
64
628 localFile = QQmlFile::urlToLocalFileOrQrc(url);-
629 usableJob = !localFile.isEmpty()
!localFile.isEmpty()Description
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_sharedimage
FALSEevaluated 331 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
16-331
630-
631 || networkJobs.count() < 8
networkJobs.count() < 8Description
TRUEevaluated 331 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
FALSEnever evaluated
0-331
632-
633 ;-
634 }
executed 347 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
347
635-
636-
637 if (usableJob
usableJobDescription
TRUEevaluated 411 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEnever evaluated
) {
0-411
638 jobs.removeAt(i);-
639-
640 job->loading = true;-
641-
642 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEevaluated 411 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
) { QQuickProfiler::pixmapStateChanged<QQuickProfiler::PixmapLoadingStarted>(url); }
never executed: end of block
else (
executed 411 times by 10 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
void)0;
executed 411 times by 10 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
0-411
643-
644 locker.unlock();-
645 processJob(job, url, localFile, imageType, provider);-
646 locker.relock();-
647 }
executed 411 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
411
648 }
executed 411 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
411
649-
650 if (!usableJob
!usableJobDescription
TRUEnever evaluated
FALSEevaluated 411 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
)
0-411
651 return;
never executed: return;
0
652 }
executed 411 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
411
653 }
executed 457 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
457
654}
never executed: end of block
0
655-
656void QQuickPixmapReader::processJob(QQuickPixmapReply *runningJob, const QUrl &url, const QString &localFile,-
657 QQuickImageProvider::ImageType imageType, QQuickImageProvider *provider)-
658{-
659-
660 if (url.scheme() == QLatin1String("image")
url.scheme() =...tring("image")Description
TRUEevaluated 64 times by 3 tests
Evaluated by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
FALSEevaluated 347 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
) {
64-347
661-
662 QSize readSize;-
663-
664 if (imageType == QQuickImageProvider::Invalid
imageType == Q...vider::InvalidDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
FALSEevaluated 62 times by 3 tests
Evaluated by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
) {
2-62
665 QString errorStr = QQuickPixmap::tr("Invalid image provider: %1").arg(url.toString());-
666 mutex.lock();-
667 if (!cancelled.contains(runningJob)
!cancelled.con...ns(runningJob)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
FALSEnever evaluated
)
0-2
668 runningJob->postReply(QQuickPixmapReply::Loading, errorStr, readSize, nullptr);
executed 2 times by 1 test: runningJob->postReply(QQuickPixmapReply::Loading, errorStr, readSize, nullptr);
Executed by:
  • tst_qquickimageprovider
2
669 mutex.unlock();-
670 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickimageprovider
2
671 }-
672-
673 QQuickImageProviderWithOptions *providerV2 = QQuickImageProviderWithOptions::checkedCast(provider);-
674-
675 switch (imageType) {-
676 case
never executed: case QQuickImageProvider::Invalid:
QQuickImageProvider::Invalid:
never executed: case QQuickImageProvider::Invalid:
0
677 {-
678-
679 break;
never executed: break;
0
680 }-
681-
682 case
executed 46 times by 3 tests: case QQuickImageProvider::Image:
Executed by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
QQuickImageProvider::Image:
executed 46 times by 3 tests: case QQuickImageProvider::Image:
Executed by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
46
683 {-
684 QImage image;-
685 if (providerV2
providerV2Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_sharedimage
FALSEevaluated 44 times by 2 tests
Evaluated by:
  • tst_qquickimage
  • tst_qquickimageprovider
) {
2-44
686 image = providerV2->requestImage(imageId(url), &readSize, runningJob->requestSize, runningJob->providerOptions);-
687 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_sharedimage
else {
2
688 image = provider->requestImage(imageId(url), &readSize, runningJob->requestSize);-
689 }
executed 44 times by 2 tests: end of block
Executed by:
  • tst_qquickimage
  • tst_qquickimageprovider
44
690 QQuickPixmapReply::ReadError errorCode = QQuickPixmapReply::NoError;-
691 QString errorStr;-
692 if (image.isNull()
image.isNull()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
FALSEevaluated 42 times by 3 tests
Evaluated by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
) {
4-42
693 errorCode = QQuickPixmapReply::Loading;-
694 errorStr = QQuickPixmap::tr("Failed to get image from provider: %1").arg(url.toString());-
695 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickimageprovider
4
696 mutex.lock();-
697 if (!cancelled.contains(runningJob)
!cancelled.con...ns(runningJob)Description
TRUEevaluated 46 times by 3 tests
Evaluated by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
FALSEnever evaluated
)
0-46
698 runningJob->postReply(errorCode, errorStr, readSize, QQuickTextureFactory::textureFactoryForImage(image));
executed 46 times by 3 tests: runningJob->postReply(errorCode, errorStr, readSize, QQuickTextureFactory::textureFactoryForImage(image));
Executed by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
46
699 mutex.unlock();-
700 break;
executed 46 times by 3 tests: break;
Executed by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
46
701 }-
702-
703 case
never executed: case QQuickImageProvider::Pixmap:
QQuickImageProvider::Pixmap:
never executed: case QQuickImageProvider::Pixmap:
0
704 {-
705 QPixmap pixmap;-
706 if (providerV2
providerV2Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
707 pixmap = providerV2->requestPixmap(imageId(url), &readSize, runningJob->requestSize, runningJob->providerOptions);-
708 }
never executed: end of block
else {
0
709 pixmap = provider->requestPixmap(imageId(url), &readSize, runningJob->requestSize);-
710 }
never executed: end of block
0
711 QQuickPixmapReply::ReadError errorCode = QQuickPixmapReply::NoError;-
712 QString errorStr;-
713 if (pixmap.isNull()
pixmap.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
714 errorCode = QQuickPixmapReply::Loading;-
715 errorStr = QQuickPixmap::tr("Failed to get image from provider: %1").arg(url.toString());-
716 }
never executed: end of block
0
717 mutex.lock();-
718 if (!cancelled.contains(runningJob)
!cancelled.con...ns(runningJob)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
719 runningJob->postReply(errorCode, errorStr, readSize, QQuickTextureFactory::textureFactoryForImage(pixmap.toImage()));
never executed: runningJob->postReply(errorCode, errorStr, readSize, QQuickTextureFactory::textureFactoryForImage(pixmap.toImage()));
0
720 mutex.unlock();-
721 break;
never executed: break;
0
722 }-
723-
724 case
never executed: case QQuickImageProvider::Texture:
QQuickImageProvider::Texture:
never executed: case QQuickImageProvider::Texture:
0
725 {-
726 QQuickTextureFactory *t;-
727 if (providerV2
providerV2Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
728 t = providerV2->requestTexture(imageId(url), &readSize, runningJob->requestSize, runningJob->providerOptions);-
729 }
never executed: end of block
else {
0
730 t = provider->requestTexture(imageId(url), &readSize, runningJob->requestSize);-
731 }
never executed: end of block
0
732 QQuickPixmapReply::ReadError errorCode = QQuickPixmapReply::NoError;-
733 QString errorStr;-
734 if (!t
!tDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
735 errorCode = QQuickPixmapReply::Loading;-
736 errorStr = QQuickPixmap::tr("Failed to get texture from provider: %1").arg(url.toString());-
737 }
never executed: end of block
0
738 mutex.lock();-
739 if (!cancelled.contains(runningJob)
!cancelled.con...ns(runningJob)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
740 runningJob->postReply(errorCode, errorStr, readSize, t);
never executed: runningJob->postReply(errorCode, errorStr, readSize, t);
0
741 else-
742 delete t;
never executed: delete t;
0
743 mutex.unlock();-
744 break;
never executed: break;
0
745 }-
746-
747 case
executed 16 times by 1 test: case QQuickImageProvider::ImageResponse:
Executed by:
  • tst_qquickimageprovider
QQuickImageProvider::ImageResponse:
executed 16 times by 1 test: case QQuickImageProvider::ImageResponse:
Executed by:
  • tst_qquickimageprovider
16
748 {-
749 QQuickImageResponse *response;-
750 if (providerV2
providerV2Description
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
) {
0-16
751 response = providerV2->requestImageResponse(imageId(url), runningJob->requestSize, runningJob->providerOptions);-
752 }
never executed: end of block
else {
0
753 QQuickAsyncImageProvider *asyncProvider = static_cast<QQuickAsyncImageProvider*>(provider);-
754 response = asyncProvider->requestImageResponse(imageId(url), runningJob->requestSize);-
755 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_qquickimageprovider
16
756-
757-
758-
759 if (static_cast<
static_cast<QQ...se))->finishedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
QQuickImageResponsePrivate*>(QObjectPrivate::get(response))->finished
static_cast<QQ...se))->finishedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
) {
8
760 QMetaObject::invokeMethod(threadObject, "asyncResponseFinished",-
761 Qt::QueuedConnection, QArgument<QQuickImageResponse* >("QQuickImageResponse*", response));-
762 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qquickimageprovider
else {
8
763 QObject::connect(response, qFlagLocation("2""finished()" "\0" __FILE__ ":" "817"), threadObject, qFlagLocation("1""asyncResponseFinished()" "\0" __FILE__ ":" "817"));-
764 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qquickimageprovider
8
765-
766 asyncResponses.insert(response, runningJob);-
767 break;
executed 16 times by 1 test: break;
Executed by:
  • tst_qquickimageprovider
16
768 }-
769 }-
770-
771 }
executed 62 times by 3 tests: end of block
Executed by:
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
else {
62
772 if (!localFile.isEmpty()
!localFile.isEmpty()Description
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_sharedimage
FALSEevaluated 331 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
16-331
773-
774 QImage image;-
775 QQuickPixmapReply::ReadError errorCode = QQuickPixmapReply::NoError;-
776 QString errorStr;-
777 QFile f(existingImageFileForPath(localFile));-
778 QSize readSize;-
779 if (f.open(QIODevice::ReadOnly)
f.open(QIODevice::ReadOnly)Description
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_sharedimage
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimage
) {
2-14
780 QSGTextureReader texReader(&f, localFile);-
781 if (backendSupport()->hasOpenGL
backendSupport()->hasOpenGLDescription
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_sharedimage
FALSEnever evaluated
&& texReader.isTexture()
texReader.isTexture()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickimage
FALSEevaluated 10 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_sharedimage
) {
0-14
782 QQuickTextureFactory *factory = texReader.read();-
783 if (factory
factoryDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickimage
FALSEnever evaluated
) {
0-4
784 readSize = factory->textureSize();-
785 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickimage
else {
4
786 errorStr = QQuickPixmap::tr("Error decoding: %1").arg(url.toString());-
787 if (f.fileName() != localFile
f.fileName() != localFileDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
788 errorStr += QString::fromLatin1(" (%1)").arg(f.fileName());
never executed: errorStr += QString::fromLatin1(" (%1)").arg(f.fileName());
0
789 errorCode = QQuickPixmapReply::Decoding;-
790 }
never executed: end of block
0
791 mutex.lock();-
792 if (!cancelled.contains(runningJob)
!cancelled.con...ns(runningJob)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickimage
FALSEnever evaluated
)
0-4
793 runningJob->postReply(errorCode, errorStr, readSize, factory);
executed 4 times by 1 test: runningJob->postReply(errorCode, errorStr, readSize, factory);
Executed by:
  • tst_qquickimage
4
794 mutex.unlock();-
795 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_qquickimage
4
796 } else {-
797 if (!readImage(url, &f, &image, &errorStr, &readSize, runningJob->requestSize, runningJob->providerOptions)
!readImage(url...oviderOptions)Description
TRUEnever evaluated
FALSEevaluated 10 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_sharedimage
) {
0-10
798 errorCode = QQuickPixmapReply::Loading;-
799 if (f.fileName() != localFile
f.fileName() != localFileDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
800 errorStr += QString::fromLatin1(" (%1)").arg(f.fileName());
never executed: errorStr += QString::fromLatin1(" (%1)").arg(f.fileName());
0
801 }
never executed: end of block
0
802 }
executed 10 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_sharedimage
10
803 } else {-
804 errorStr = QQuickPixmap::tr("Cannot open: %1").arg(url.toString());-
805 errorCode = QQuickPixmapReply::Loading;-
806 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickimage
2
807 mutex.lock();-
808 if (!cancelled.contains(runningJob)
!cancelled.con...ns(runningJob)Description
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_sharedimage
FALSEnever evaluated
)
0-12
809 runningJob->postReply(errorCode, errorStr, readSize, QQuickTextureFactory::textureFactoryForImage(image));
executed 12 times by 3 tests: runningJob->postReply(errorCode, errorStr, readSize, QQuickTextureFactory::textureFactoryForImage(image));
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_sharedimage
12
810 mutex.unlock();-
811 }
executed 12 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_sharedimage
else {
12
812-
813-
814 QNetworkRequest req(url);-
815 req.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true);-
816 QNetworkReply *reply = networkAccessManager()->get(req);-
817-
818 QMetaObject::connect(reply, replyDownloadProgress, runningJob, downloadProgress);-
819 QMetaObject::connect(reply, replyFinished, threadObject, threadNetworkRequestDone);-
820-
821 networkJobs.insert(reply, runningJob);-
822-
823-
824-
825 }
executed 331 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
331
826 }-
827}-
828-
829QQuickPixmapReader *QQuickPixmapReader::instance(QQmlEngine *engine)-
830{-
831-
832 QQuickPixmapReader *reader = readers.value(engine);-
833 if (!reader
!readerDescription
TRUEevaluated 80 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 2296 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
80-2296
834 reader = new QQuickPixmapReader(engine);-
835 readers.insert(engine, reader);-
836 }
executed 80 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
80
837-
838 return
executed 2376 times by 10 tests: return reader;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
reader;
executed 2376 times by 10 tests: return reader;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
2376
839}-
840-
841QQuickPixmapReader *QQuickPixmapReader::existingInstance(QQmlEngine *engine)-
842{-
843-
844 return
executed 2244 times by 7 tests: return readers.value(engine, 0);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
readers.value(engine, 0);
executed 2244 times by 7 tests: return readers.value(engine, 0);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
2244
845}-
846-
847QQuickPixmapReply *QQuickPixmapReader::getImage(QQuickPixmapData *data)-
848{-
849 mutex.lock();-
850 QQuickPixmapReply *reply = new QQuickPixmapReply(data);-
851 reply->engineForReader = engine;-
852 jobs.append(reply);-
853-
854 if (threadObject
threadObjectDescription
TRUEevaluated 2278 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 98 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
) threadObject->processJobs();
executed 2278 times by 6 tests: threadObject->processJobs();
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
98-2278
855 mutex.unlock();-
856 return
executed 2376 times by 10 tests: return reply;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
reply;
executed 2376 times by 10 tests: return reply;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
2376
857}-
858-
859void QQuickPixmapReader::cancel(QQuickPixmapReply *reply)-
860{-
861 mutex.lock();-
862 if (reply->loading
reply->loadingDescription
TRUEevaluated 267 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
FALSEevaluated 1975 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
) {
267-1975
863 cancelled.append(reply);-
864 reply->data = nullptr;-
865-
866 if (threadObject
threadObjectDescription
TRUEevaluated 267 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
FALSEnever evaluated
) threadObject->processJobs();
executed 267 times by 5 tests: threadObject->processJobs();
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
0-267
867 }
executed 267 times by 5 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
else {
267
868-
869-
870 if (jobs.removeAll(reply) == 0
jobs.removeAll(reply) == 0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 1965 times by 4 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
) {
10-1965
871 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_examples
) { QQuickProfiler::pixmapStateChanged<QQuickProfiler::PixmapLoadingError>(reply->url); }
never executed: end of block
else (
executed 10 times by 1 test: (void)0;
Executed by:
  • tst_examples
void)0;
executed 10 times by 1 test: (void)0;
Executed by:
  • tst_examples
0-10
872 }-
873 delete reply;-
874 }
executed 1975 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
1975
875 mutex.unlock();-
876}
executed 2242 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
2242
877-
878void QQuickPixmapReader::run()-
879{-
880 if (replyDownloadProgress == -1
replyDownloadProgress == -1Description
TRUEevaluated 20 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 60 times by 5 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
) {
20-60
881-
882 replyDownloadProgress = QMetaMethod::fromSignal(&QNetworkReply::downloadProgress).methodIndex();-
883 replyFinished = QMetaMethod::fromSignal(&QNetworkReply::finished).methodIndex();-
884 const QMetaObject *ir = &QQuickPixmapReaderThreadObject::staticMetaObject;-
885 threadNetworkRequestDone = ir->indexOfSlot("networkRequestDone()");-
886-
887 downloadProgress = QMetaMethod::fromSignal(&QQuickPixmapReply::downloadProgress).methodIndex();-
888 }
executed 20 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
20
889-
890 mutex.lock();-
891 threadObject = new QQuickPixmapReaderThreadObject(this);-
892 mutex.unlock();-
893-
894 processJobs();-
895 exec();-
896-
897 delete threadObject;-
898 threadObject = nullptr;-
899}
executed 80 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
80
900-
901class QQuickPixmapKey-
902{-
903public:-
904 const QUrl *url;-
905 const QSize *size;-
906 QQuickImageProviderOptions options;-
907};-
908-
909inline bool operator==(const QQuickPixmapKey &lhs, const QQuickPixmapKey &rhs)-
910{-
911 return
executed 16817 times by 39 tests: return *lhs.size == *rhs.size && *lhs.url == *rhs.url && lhs.options == rhs.options;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
*lhs.size == *rhs.size && *lhs.url == *rhs.url && lhs.options == rhs.options;
executed 16817 times by 39 tests: return *lhs.size == *rhs.size && *lhs.url == *rhs.url && lhs.options == rhs.options;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
16817
912}-
913-
914inline uint qHash(const QQuickPixmapKey &key)-
915{-
916 return
executed 38779 times by 39 tests: return qHash(*key.url) ^ (key.size->width()*7) ^ (key.size->height()*17) ^ (key.options.autoTransform() * 0x5c5c5c5c);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
qHash(*key.url) ^ (key.size->width()*7) ^ (key.size->height()*17) ^ (key.options.autoTransform() * 0x5c5c5c5c);
executed 38779 times by 39 tests: return qHash(*key.url) ^ (key.size->width()*7) ^ (key.size->height()*17) ^ (key.options.autoTransform() * 0x5c5c5c5c);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
38779
917}-
918-
919class QQuickPixmapStore : public QObject-
920{-
921 public:-
922#pragma GCC diagnostic push-
923 -
924#pragma GCC diagnostic ignored "-Wsuggest-override"-
925 static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private:-
926#pragma GCC diagnostic ignored "-Wattributes"-
927 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
928#pragma GCC diagnostic pop-
929 struct QPrivateSignal {};-
930public:-
931 QQuickPixmapStore();-
932 ~QQuickPixmapStore();-
933-
934 void unreferencePixmap(QQuickPixmapData *);-
935 void referencePixmap(QQuickPixmapData *);-
936-
937 void purgeCache();-
938-
939protected:-
940 void timerEvent(QTimerEvent *) override;-
941-
942public:-
943 QHash<QQuickPixmapKey, QQuickPixmapData *> m_cache;-
944-
945private:-
946 void shrinkCache(int remove);-
947-
948 QQuickPixmapData *m_unreferencedPixmaps;-
949 QQuickPixmapData *m_lastUnreferencedPixmap;-
950-
951 int m_unreferencedCost;-
952 int m_timerId;-
953 bool m_destroying;-
954};-
955namespace { namespace Q_QGS_pixmapStore { typedef QQuickPixmapStore Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 200 times by 93 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 200 times by 93 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • ...
}
executed 200 times by 93 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 53845 times by 93 tests: return &holder.value;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • ...
&holder.value;
executed 53845 times by 93 tests: return &holder.value;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • ...
} } } static QGlobalStatic<QQuickPixmapStore, Q_QGS_pixmapStore::innerFunction, Q_QGS_pixmapStore::guard> pixmapStore;;
0-53845
956-
957-
958QQuickPixmapStore::QQuickPixmapStore()-
959 : m_unreferencedPixmaps(nullptr), m_lastUnreferencedPixmap(nullptr), m_unreferencedCost(0), m_timerId(-1), m_destroying(false)-
960{-
961}
executed 200 times by 93 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • ...
200
962-
963QQuickPixmapStore::~QQuickPixmapStore()-
964{-
965 m_destroying = true;-
966-
967-
968 int leakedPixmaps = 0;-
969-
970-
971-
972-
973 m_timerId = -2;-
974-
975-
976 for (auto *pixmap : qAsConst(m_cache)) {-
977 int currRefCount = pixmap->refCount;-
978 if (currRefCount
currRefCountDescription
TRUEevaluated 20 times by 3 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
FALSEevaluated 74 times by 3 tests
Evaluated by:
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquickstates
) {
20-74
979-
980 leakedPixmaps++;-
981-
982 while (currRefCount > 0
currRefCount > 0Description
TRUEevaluated 1278 times by 3 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
FALSEevaluated 20 times by 3 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
) {
20-1278
983 pixmap->release();-
984 currRefCount--;-
985 }
executed 1278 times by 3 tests: end of block
Executed by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
1278
986 }
executed 20 times by 3 tests: end of block
Executed by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
20
987 }
executed 94 times by 5 tests: end of block
Executed by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickpixmapcache
  • tst_qquickstates
94
988-
989-
990 while (m_lastUnreferencedPixmap
m_lastUnreferencedPixmapDescription
TRUEevaluated 10 times by 5 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickpixmapcache
  • tst_qquickstates
FALSEevaluated 200 times by 93 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • ...
) {
10-200
991 shrinkCache(20);-
992 }
executed 10 times by 5 tests: end of block
Executed by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickpixmapcache
  • tst_qquickstates
10
993-
994-
995 if (leakedPixmaps
leakedPixmapsDescription
TRUEevaluated 6 times by 3 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
FALSEevaluated 194 times by 90 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickdynamicpropertyanimation
  • ...
&& qsg_leak_check
qsg_leak_checkDescription
TRUEnever evaluated
FALSEevaluated 6 times by 3 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
)
0-194
996 QMessageLogger(__FILE__, 1042, __PRETTY_FUNCTION__).debug("Number of leaked pixmaps: %i", leakedPixmaps);
never executed: QMessageLogger(__FILE__, 1042, __PRETTY_FUNCTION__).debug("Number of leaked pixmaps: %i", leakedPixmaps);
0
997-
998}
executed 200 times by 93 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • ...
200
999-
1000void QQuickPixmapStore::unreferencePixmap(QQuickPixmapData *data)-
1001{-
1002 ((data->prevUnreferenced == nullptr) ? static_cast<void>(0) : qt_assert("data->prevUnreferenced == nullptr", __FILE__, 1048));-
1003 ((data->prevUnreferencedPtr == nullptr) ? static_cast<void>(0) : qt_assert("data->prevUnreferencedPtr == nullptr", __FILE__, 1049));-
1004 ((data->nextUnreferenced == nullptr) ? static_cast<void>(0) : qt_assert("data->nextUnreferenced == nullptr", __FILE__, 1050));-
1005-
1006 data->nextUnreferenced = m_unreferencedPixmaps;-
1007 data->prevUnreferencedPtr = &m_unreferencedPixmaps;-
1008 if (!m_destroying
!m_destroyingDescription
TRUEevaluated 9097 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
FALSEevaluated 20 times by 3 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
)
20-9097
1009 m_unreferencedCost += data->cost();
executed 9097 times by 36 tests: m_unreferencedCost += data->cost();
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
9097
1010-
1011 m_unreferencedPixmaps = data;-
1012 if (m_unreferencedPixmaps->nextUnreferenced
m_unreferenced...xtUnreferencedDescription
TRUEevaluated 8458 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickmaskextruder
  • tst_qquickpixmapcache
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
FALSEevaluated 659 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
) {
659-8458
1013 m_unreferencedPixmaps->nextUnreferenced->prevUnreferenced = m_unreferencedPixmaps;-
1014 m_unreferencedPixmaps->nextUnreferenced->prevUnreferencedPtr = &m_unreferencedPixmaps->nextUnreferenced;-
1015 }
executed 8458 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickmaskextruder
  • tst_qquickpixmapcache
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
8458
1016-
1017 if (!m_lastUnreferencedPixmap
!m_lastUnreferencedPixmapDescription
TRUEevaluated 659 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
FALSEevaluated 8458 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickmaskextruder
  • tst_qquickpixmapcache
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
)
659-8458
1018 m_lastUnreferencedPixmap = data;
executed 659 times by 37 tests: m_lastUnreferencedPixmap = data;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
659
1019-
1020 shrinkCache(-1);-
1021-
1022 if (m_timerId == -1
m_timerId == -1Description
TRUEevaluated 78 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
FALSEevaluated 9039 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickfriction
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktrailemitter
  • tst_scenegraph
&& m_unreferencedPixmaps
m_unreferencedPixmapsDescription
TRUEevaluated 74 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_examples
4-9039
1023 && !m_destroying
!m_destroyingDescription
TRUEevaluated 74 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
FALSEnever evaluated
&& !QCoreApplication::closingDown()
!QCoreApplicat...:closingDown()Description
TRUEevaluated 74 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
FALSEnever evaluated
) {
0-74
1024 m_timerId = startTimer(30 * 1000);-
1025 }
executed 74 times by 36 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
74
1026}
executed 9117 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
9117
1027-
1028void QQuickPixmapStore::referencePixmap(QQuickPixmapData *data)-
1029{-
1030 ((data->prevUnreferencedPtr) ? static_cast<void>(0) : qt_assert("data->prevUnreferencedPtr", __FILE__, 1076));-
1031-
1032 *data->prevUnreferencedPtr = data->nextUnreferenced;-
1033 if (data->nextUnreferenced
data->nextUnreferencedDescription
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
FALSEevaluated 215 times by 10 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquicktrailemitter
) {
22-215
1034 data->nextUnreferenced->prevUnreferencedPtr = data->prevUnreferencedPtr;-
1035 data->nextUnreferenced->prevUnreferenced = data->prevUnreferenced;-
1036 }
executed 22 times by 3 tests: end of block
Executed by:
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
22
1037 if (m_lastUnreferencedPixmap == data
m_lastUnrefere...Pixmap == dataDescription
TRUEevaluated 215 times by 10 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquicktrailemitter
FALSEevaluated 22 times by 3 tests
Evaluated by:
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
)
22-215
1038 m_lastUnreferencedPixmap = data->prevUnreferenced;
executed 215 times by 10 tests: m_lastUnreferencedPixmap = data->prevUnreferenced;
Executed by:
  • tst_qquickage
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquicktrailemitter
215
1039-
1040 data->nextUnreferenced = nullptr;-
1041 data->prevUnreferencedPtr = nullptr;-
1042 data->prevUnreferenced = nullptr;-
1043-
1044 m_unreferencedCost -= data->cost();-
1045}
executed 237 times by 10 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquicktrailemitter
237
1046-
1047void QQuickPixmapStore::shrinkCache(int remove)-
1048{-
1049 while ((remove > 0
remove > 0Description
TRUEevaluated 778 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
FALSEevaluated 22819 times by 91 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickdynamicpropertyanimation
  • ...
|| m_unreferencedCost > cache_limit
m_unreferenced... > cache_limitDescription
TRUEevaluated 8112 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedsprite
  • tst_qquickpixmapcache
  • tst_qquickspritesequence
  • tst_scenegraph
FALSEevaluated 14707 times by 91 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickdynamicpropertyanimation
  • ...
) && m_lastUnreferencedPixmap
m_lastUnreferencedPixmapDescription
TRUEevaluated 8880 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
FALSEevaluated 10 times by 5 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickpixmapcache
  • tst_qquickstates
) {
10-22819
1050 QQuickPixmapData *data = m_lastUnreferencedPixmap;-
1051 ((data->nextUnreferenced == nullptr) ? static_cast<void>(0) : qt_assert("data->nextUnreferenced == nullptr", __FILE__, 1097));-
1052-
1053 *data->prevUnreferencedPtr = nullptr;-
1054 m_lastUnreferencedPixmap = data->prevUnreferenced;-
1055 data->prevUnreferencedPtr = nullptr;-
1056 data->prevUnreferenced = nullptr;-
1057-
1058 if (!m_destroying
!m_destroyingDescription
TRUEevaluated 8786 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • ...
FALSEevaluated 94 times by 5 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickpixmapcache
  • tst_qquickstates
) {
94-8786
1059 remove -= data->cost();-
1060 m_unreferencedCost -= data->cost();-
1061 }
executed 8786 times by 34 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem2
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • ...
8786
1062 data->removeFromCache();-
1063 delete data;-
1064 }
executed 8880 times by 37 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
8880
1065}
executed 14717 times by 91 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickdynamicpropertyanimation
  • ...
14717
1066-
1067void QQuickPixmapStore::timerEvent(QTimerEvent *)-
1068{-
1069 int removalCost = m_unreferencedCost / 4;-
1070-
1071 shrinkCache(removalCost);-
1072-
1073 if (m_unreferencedPixmaps == nullptr
m_unreferenced...aps == nullptrDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_scenegraph
FALSEnever evaluated
) {
0-6
1074 killTimer(m_timerId);-
1075 m_timerId = -1;-
1076 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_scenegraph
6
1077}
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_scenegraph
6
1078-
1079void QQuickPixmapStore::purgeCache()-
1080{-
1081 shrinkCache(m_unreferencedCost);-
1082}
executed 5584 times by 89 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickdynamicpropertyanimation
  • ...
5584
1083-
1084void QQuickPixmap::purgeCache()-
1085{-
1086 pixmapStore()->purgeCache();-
1087}
executed 5584 times by 89 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • tst_qquickdroparea
  • tst_qquickdynamicpropertyanimation
  • ...
5584
1088-
1089QQuickPixmapReply::QQuickPixmapReply(QQuickPixmapData *d)-
1090: data(d), engineForReader(nullptr), requestSize(d->requestSize), url(d->url), loading(false), providerOptions(d->providerOptions), redirectCount(0)-
1091{-
1092 if (finishedIndex == -1
finishedIndex == -1Description
TRUEevaluated 20 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 2356 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
) {
20-2356
1093 finishedIndex = QMetaMethod::fromSignal(&QQuickPixmapReply::finished).methodIndex();-
1094 downloadProgressIndex = QMetaMethod::fromSignal(&QQuickPixmapReply::downloadProgress).methodIndex();-
1095 }
executed 20 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
20
1096}
executed 2376 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
2376
1097-
1098QQuickPixmapReply::~QQuickPixmapReply()-
1099{-
1100-
1101-
1102}-
1103-
1104bool QQuickPixmapReply::event(QEvent *event)-
1105{-
1106 if (event->type() == QEvent::User
event->type() == QEvent::UserDescription
TRUEevaluated 132 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 326 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
132-326
1107-
1108 if (data
dataDescription
TRUEevaluated 132 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEnever evaluated
) {
0-132
1109 Event *de = static_cast<Event *>(event);-
1110 data->pixmapStatus = (
(de->error == NoError)Description
TRUEevaluated 114 times by 7 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 18 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktextedit
de->error == NoError)
(de->error == NoError)Description
TRUEevaluated 114 times by 7 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 18 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktextedit
? QQuickPixmap::Ready : QQuickPixmap::Error;
18-114
1111 if (data->pixmapStatus == QQuickPixmap::Ready
data->pixmapSt...kPixmap::ReadyDescription
TRUEevaluated 114 times by 7 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
FALSEevaluated 18 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktextedit
) {
18-114
1112 data->textureFactory = de->textureFactory;-
1113 de->textureFactory = nullptr;-
1114 data->implicitSize = de->implicitSize;-
1115 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEevaluated 114 times by 7 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
) { QQuickProfiler::pixmapLoadingFinished(data->url, data->textureFactory != nullptr && data->textureFactory->textureSize().isValid() ? data->textureFactory->textureSize() : (data->requestSize.isValid() ? data->requestSize : data->implicitSize)); }
never executed: end of block
else (
executed 114 times by 7 tests: (void)0 ;
Executed by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
void)0
executed 114 times by 7 tests: (void)0 ;
Executed by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
0-114
1116114
1117114
1118 ;
executed 114 times by 7 tests: (void)0 ;
Executed by:
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
114
1119 } else {-
1120 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEevaluated 18 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktextedit
) { QQuickProfiler::pixmapStateChanged<QQuickProfiler::PixmapLoadingError>(data->url); }
never executed: end of block
else (
executed 18 times by 6 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktextedit
void)0;
executed 18 times by 6 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktextedit
0-18
1121 data->errorString = de->errorString;-
1122 data->removeFromCache();-
1123 }
executed 18 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktextedit
18
1124-
1125 data->reply = nullptr;-
1126 finished();-
1127 }
executed 132 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
else {
132
1128 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEnever evaluated
) { QQuickProfiler::pixmapStateChanged<QQuickProfiler::PixmapLoadingError>(url); }
never executed: end of block
else (
never executed: (void)0;
void)0;
never executed: (void)0;
0
1129 }-
1130-
1131 delete this;-
1132 return
executed 132 times by 8 tests: return true;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
true;
executed 132 times by 8 tests: return true;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
132
1133 } else {-
1134 return
executed 326 times by 8 tests: return QObject::event(event);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
QObject::event(event);
executed 326 times by 8 tests: return QObject::event(event);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
326
1135 }-
1136}-
1137-
1138int QQuickPixmapData::cost() const-
1139{-
1140 if (textureFactory
textureFactoryDescription
TRUEevaluated 26906 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
FALSEnever evaluated
)
0-26906
1141 return
executed 26906 times by 36 tests: return textureFactory->textureByteCount();
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
textureFactory->textureByteCount();
executed 26906 times by 36 tests: return textureFactory->textureByteCount();
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
26906
1142 return
never executed: return 0;
0;
never executed: return 0;
0
1143}-
1144-
1145void QQuickPixmapData::addref()-
1146{-
1147 ++refCount;-
1148 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEevaluated 5571 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktrailemitter
  • tst_scenegraph
) { QQuickProfiler::pixmapCountChanged<QQuickProfiler::PixmapReferenceCountChanged>(url, refCount); }
never executed: end of block
else (
executed 5571 times by 18 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktrailemitter
  • tst_scenegraph
void)0;
executed 5571 times by 18 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktrailemitter
  • tst_scenegraph
0-5571
1149 if (prevUnreferencedPtr
prevUnreferencedPtrDescription
TRUEevaluated 237 times by 10 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquicktrailemitter
FALSEevaluated 5334 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_scenegraph
)
237-5334
1150 pixmapStore()->referencePixmap(this);
executed 237 times by 10 tests: pixmapStore()->referencePixmap(this);
Executed by:
  • tst_qquickage
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquicktrailemitter
237
1151}
executed 5571 times by 18 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktrailemitter
  • tst_scenegraph
5571
1152-
1153void QQuickPixmapData::release()-
1154{-
1155 ((refCount > 0) ? static_cast<void>(0) : qt_assert("refCount > 0", __FILE__, 1201));-
1156 --refCount;-
1157 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEevaluated 16879 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
) { QQuickProfiler::pixmapCountChanged<QQuickProfiler::PixmapReferenceCountChanged>(url, refCount); }
never executed: end of block
else (
executed 16879 times by 40 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
void)0;
executed 16879 times by 40 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
0-16879
1158 if (refCount == 0
refCount == 0Description
TRUEevaluated 11545 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
FALSEevaluated 5334 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_scenegraph
) {
5334-11545
1159 if (reply
replyDescription
TRUEevaluated 2244 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
FALSEevaluated 9301 times by 38 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
) {
2244-9301
1160 QQuickPixmapReply *cancelReply = reply;-
1161 reply->data = nullptr;-
1162 reply = nullptr;-
1163 QQuickPixmapReader::readerMutex.lock();-
1164 QQuickPixmapReader *reader = QQuickPixmapReader::existingInstance(cancelReply->engineForReader);-
1165 if (reader
readerDescription
TRUEevaluated 2242 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickpixmapcache
)
2-2242
1166 reader->cancel(cancelReply);
executed 2242 times by 7 tests: reader->cancel(cancelReply);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
2242
1167 QQuickPixmapReader::readerMutex.unlock();-
1168 }
executed 2244 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
2244
1169-
1170 if (pixmapStatus == QQuickPixmap::Ready
pixmapStatus =...kPixmap::ReadyDescription
TRUEevaluated 9177 times by 38 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
FALSEevaluated 2368 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
2368-9177
1171 if (inCache
inCacheDescription
TRUEevaluated 9117 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
FALSEevaluated 60 times by 4 tests
Evaluated by:
  • tst_qquickanimatedimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_sharedimage
)
60-9117
1172 pixmapStore()->unreferencePixmap(this);
executed 9117 times by 37 tests: pixmapStore()->unreferencePixmap(this);
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
9117
1173 else-
1174 delete this;
executed 60 times by 4 tests: delete this;
Executed by:
  • tst_qquickanimatedimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_sharedimage
60
1175 } else {-
1176 removeFromCache();-
1177 delete this;-
1178 }
executed 2368 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
2368
1179 }-
1180}
executed 16879 times by 40 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
16879
1181-
1182void QQuickPixmapData::addToCache()-
1183{-
1184 if (!inCache
!inCacheDescription
TRUEevaluated 11142 times by 39 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
FALSEnever evaluated
) {
0-11142
1185 QQuickPixmapKey key = { &url, &requestSize, providerOptions };-
1186 pixmapStore()->m_cache.insert(key, this);-
1187 inCache = true;-
1188 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEevaluated 11142 times by 39 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
) { QQuickProfiler::pixmapCountChanged<QQuickProfiler::PixmapCacheCountChanged>( url, pixmapStore()->m_cache.count()); }
never executed: end of block
else (
executed 11142 times by 39 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
void)0
executed 11142 times by 39 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
0-11142
1189 ;
executed 11142 times by 39 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
11142
1190 }-
1191}
executed 11142 times by 39 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
11142
1192-
1193void QQuickPixmapData::removeFromCache()-
1194{-
1195 if (inCache
inCacheDescription
TRUEevaluated 11142 times by 39 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
FALSEevaluated 124 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
124-11142
1196 QQuickPixmapKey key = { &url, &requestSize, providerOptions };-
1197 pixmapStore()->m_cache.remove(key);-
1198 inCache = false;-
1199 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEevaluated 11142 times by 39 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
) { QQuickProfiler::pixmapCountChanged<QQuickProfiler::PixmapCacheCountChanged>( url, pixmapStore()->m_cache.count()); }
never executed: end of block
else (
executed 11142 times by 39 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
void)0
executed 11142 times by 39 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
0-11142
1200 ;
executed 11142 times by 39 tests: (void)0 ;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
11142
1201 }-
1202}
executed 11266 times by 39 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
11266
1203-
1204static QQuickPixmapData* createPixmapDataSync(QQuickPixmap *declarativePixmap, QQmlEngine *engine, const QUrl &url, const QSize &requestSize, const QQuickImageProviderOptions &providerOptions, bool *ok)-
1205{-
1206 if (url.scheme() == QLatin1String("image")
url.scheme() =...tring("image")Description
TRUEevaluated 8064 times by 4 tests
Evaluated by:
  • tst_qquickanimatedsprite
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
FALSEevaluated 3078 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
) {
3078-8064
1207 QSize readSize;-
1208-
1209 QQuickImageProvider::ImageType imageType = QQuickImageProvider::Invalid;-
1210 QQuickImageProvider *provider = static_cast<QQuickImageProvider *>(engine->imageProvider(imageProviderId(url)));-
1211 QQuickImageProviderWithOptions *providerV2 = QQuickImageProviderWithOptions::checkedCast(provider);-
1212 if (provider
providerDescription
TRUEevaluated 8054 times by 4 tests
Evaluated by:
  • tst_qquickanimatedsprite
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
)
10-8054
1213 imageType = provider->imageType();
executed 8054 times by 4 tests: imageType = provider->imageType();
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
8054
1214-
1215 switch (imageType) {-
1216 case
executed 10 times by 1 test: case QQuickImageProvider::Invalid:
Executed by:
  • tst_qquickimageprovider
QQuickImageProvider::Invalid:
executed 10 times by 1 test: case QQuickImageProvider::Invalid:
Executed by:
  • tst_qquickimageprovider
10
1217 return
executed 10 times by 1 test: return new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions, QQuickPixmap::tr("Invalid image provider: %1").arg(url.toString()));
Executed by:
  • tst_qquickimageprovider
new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions,
executed 10 times by 1 test: return new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions, QQuickPixmap::tr("Invalid image provider: %1").arg(url.toString()));
Executed by:
  • tst_qquickimageprovider
10
1218 QQuickPixmap::tr("Invalid image provider: %1").arg(url.toString()));
executed 10 times by 1 test: return new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions, QQuickPixmap::tr("Invalid image provider: %1").arg(url.toString()));
Executed by:
  • tst_qquickimageprovider
10
1219 case
never executed: case QQuickImageProvider::Texture:
QQuickImageProvider::Texture:
never executed: case QQuickImageProvider::Texture:
0
1220 {-
1221 QQuickTextureFactory *texture = providerV2
providerV2Description
TRUEnever evaluated
FALSEnever evaluated
? providerV2->requestTexture(imageId(url), &readSize, requestSize, providerOptions)
0
1222 : provider->requestTexture(imageId(url), &readSize, requestSize);-
1223 if (texture
textureDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1224 *ok = true;-
1225 return
never executed: return new QQuickPixmapData(declarativePixmap, url, texture, readSize, requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);
new QQuickPixmapData(declarativePixmap, url, texture, readSize, requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);
never executed: return new QQuickPixmapData(declarativePixmap, url, texture, readSize, requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);
0
1226 }-
1227 break;
never executed: break;
0
1228 }-
1229-
1230 case
executed 24 times by 2 tests: case QQuickImageProvider::Image:
Executed by:
  • tst_qquickimageprovider
  • tst_sharedimage
QQuickImageProvider::Image:
executed 24 times by 2 tests: case QQuickImageProvider::Image:
Executed by:
  • tst_qquickimageprovider
  • tst_sharedimage
24
1231 {-
1232 QImage image = providerV2
providerV2Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_sharedimage
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
? providerV2->requestImage(imageId(url), &readSize, requestSize, providerOptions)
6-18
1233 : provider->requestImage(imageId(url), &readSize, requestSize);-
1234 if (!image.isNull()
!image.isNull()Description
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qquickimageprovider
  • tst_sharedimage
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
) {
2-22
1235 *ok = true;-
1236 return
executed 22 times by 2 tests: return new QQuickPixmapData(declarativePixmap, url, QQuickTextureFactory::textureFactoryForImage(image), readSize, requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);
Executed by:
  • tst_qquickimageprovider
  • tst_sharedimage
new QQuickPixmapData(declarativePixmap, url, QQuickTextureFactory::textureFactoryForImage(image), readSize, requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);
executed 22 times by 2 tests: return new QQuickPixmapData(declarativePixmap, url, QQuickTextureFactory::textureFactoryForImage(image), readSize, requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);
Executed by:
  • tst_qquickimageprovider
  • tst_sharedimage
22
1237 }-
1238 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qquickimageprovider
2
1239 }-
1240 case
executed 8030 times by 3 tests: case QQuickImageProvider::Pixmap:
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
QQuickImageProvider::Pixmap:
executed 8030 times by 3 tests: case QQuickImageProvider::Pixmap:
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
8030
1241 {-
1242 QPixmap pixmap = providerV2
providerV2Description
TRUEnever evaluated
FALSEevaluated 8030 times by 3 tests
Evaluated by:
  • tst_qquickanimatedsprite
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
? providerV2->requestPixmap(imageId(url), &readSize, requestSize, providerOptions)
0-8030
1243 : provider->requestPixmap(imageId(url), &readSize, requestSize);-
1244 if (!pixmap.isNull()
!pixmap.isNull()Description
TRUEevaluated 8028 times by 3 tests
Evaluated by:
  • tst_qquickanimatedsprite
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
) {
2-8028
1245 *ok = true;-
1246 return
executed 8028 times by 3 tests: return new QQuickPixmapData(declarativePixmap, url, QQuickTextureFactory::textureFactoryForImage(pixmap.toImage()), readSize, requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
new QQuickPixmapData(declarativePixmap, url, QQuickTextureFactory::textureFactoryForImage(pixmap.toImage()), readSize, requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);
executed 8028 times by 3 tests: return new QQuickPixmapData(declarativePixmap, url, QQuickTextureFactory::textureFactoryForImage(pixmap.toImage()), readSize, requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
8028
1247 }-
1248 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qquickimageprovider
2
1249 }-
1250 case
never executed: case QQuickImageProvider::ImageResponse:
QQuickImageProvider::ImageResponse:
never executed: case QQuickImageProvider::ImageResponse:
0
1251 {-
1252-
1253 ((imageType != QQuickImageProvider::ImageResponse && "Sync call to ImageResponse provider") ? static_cast<void>(0) : qt_assert("imageType != QQuickImageProvider::ImageResponse && \"Sync call to ImageResponse provider\"", __FILE__, 1299));-
1254 }-
1255 }
never executed: end of block
0
1256-
1257-
1258 return
executed 4 times by 1 test: return new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions, QQuickPixmap::tr("Failed to get image from provider: %1").arg(url.toString()));
Executed by:
  • tst_qquickimageprovider
new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions,
executed 4 times by 1 test: return new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions, QQuickPixmap::tr("Failed to get image from provider: %1").arg(url.toString()));
Executed by:
  • tst_qquickimageprovider
4
1259 QQuickPixmap::tr("Failed to get image from provider: %1").arg(url.toString()));
executed 4 times by 1 test: return new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions, QQuickPixmap::tr("Failed to get image from provider: %1").arg(url.toString()));
Executed by:
  • tst_qquickimageprovider
4
1260 }-
1261-
1262 QString localFile = QQmlFile::urlToLocalFileOrQrc(url);-
1263 if (localFile.isEmpty()
localFile.isEmpty()Description
TRUEevaluated 2282 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 796 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
)
796-2282
1264 return
executed 2282 times by 8 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
nullptr;
executed 2282 times by 8 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
2282
1265-
1266 QFile f(existingImageFileForPath(localFile));-
1267 QSize readSize;-
1268 QString errorString;-
1269-
1270 if (f.open(QIODevice::ReadOnly)
f.open(QIODevice::ReadOnly)Description
TRUEevaluated 704 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
FALSEevaluated 92 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
92-704
1271 QSGTextureReader texReader(&f, localFile);-
1272 if (backendSupport()->hasOpenGL
backendSupport()->hasOpenGLDescription
TRUEevaluated 704 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
FALSEnever evaluated
&& texReader.isTexture()
texReader.isTexture()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickimage
FALSEevaluated 698 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
) {
0-704
1273 QQuickTextureFactory *factory = texReader.read();-
1274 if (factory
factoryDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickimage
FALSEnever evaluated
) {
0-6
1275 *ok = true;-
1276 return
executed 6 times by 1 test: return new QQuickPixmapData(declarativePixmap, url, factory, factory->textureSize(), requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);
Executed by:
  • tst_qquickimage
new QQuickPixmapData(declarativePixmap, url, factory, factory->textureSize(), requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);
executed 6 times by 1 test: return new QQuickPixmapData(declarativePixmap, url, factory, factory->textureSize(), requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);
Executed by:
  • tst_qquickimage
6
1277 } else {-
1278 errorString = QQuickPixmap::tr("Error decoding: %1").arg(url.toString());-
1279 if (f.fileName() != localFile
f.fileName() != localFileDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1280 errorString += QString::fromLatin1(" (%1)").arg(f.fileName());
never executed: errorString += QString::fromLatin1(" (%1)").arg(f.fileName());
0
1281 }
never executed: end of block
0
1282 } else {-
1283 QImage image;-
1284 QQuickImageProviderOptions::AutoTransform appliedTransform = providerOptions.autoTransform();-
1285 if (readImage(url, &f, &image, &errorString, &readSize, requestSize, providerOptions, &appliedTransform)
readImage(url,...liedTransform)Description
TRUEevaluated 698 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
FALSEnever evaluated
) {
0-698
1286 *ok = true;-
1287 return
executed 698 times by 34 tests: return new QQuickPixmapData(declarativePixmap, url, QQuickTextureFactory::textureFactoryForImage(image), readSize, requestSize, providerOptions, appliedTransform);
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
new QQuickPixmapData(declarativePixmap, url, QQuickTextureFactory::textureFactoryForImage(image), readSize, requestSize, providerOptions, appliedTransform);
executed 698 times by 34 tests: return new QQuickPixmapData(declarativePixmap, url, QQuickTextureFactory::textureFactoryForImage(image), readSize, requestSize, providerOptions, appliedTransform);
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
698
1288 } else if (f.fileName() != localFile
f.fileName() != localFileDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1289 errorString += QString::fromLatin1(" (%1)").arg(f.fileName());-
1290 }
never executed: end of block
0
1291 }
never executed: end of block
0
1292 } else {-
1293 errorString = QQuickPixmap::tr("Cannot open: %1").arg(url.toString());-
1294 }
executed 92 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
92
1295 return
executed 92 times by 6 tests: return new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions, errorString);
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions, errorString);
executed 92 times by 6 tests: return new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions, errorString);
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
92
1296}-
1297-
1298-
1299struct QQuickPixmapNull {-
1300 QUrl url;-
1301 QSize size;-
1302};-
1303namespace { namespace Q_QGS_nullPixmap { typedef QQuickPixmapNull Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEnever evaluated
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
never executed: guard.store(QtGlobalStatic::Destroyed);
}
never executed: end of block
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
never executed: return &holder.value;
&holder.value;
never executed: return &holder.value;
} } } static QGlobalStatic<QQuickPixmapNull, Q_QGS_nullPixmap::innerFunction, Q_QGS_nullPixmap::guard> nullPixmap;;
0
1304-
1305QQuickPixmap::QQuickPixmap()-
1306: d(nullptr)-
1307{-
1308}
executed 6566 times by 42 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquicklistview
  • ...
6566
1309-
1310QQuickPixmap::QQuickPixmap(QQmlEngine *engine, const QUrl &url)-
1311: d(nullptr)-
1312{-
1313 load(engine, url);-
1314}
executed 10182 times by 4 tests: end of block
Executed by:
  • tst_qquickanimatedimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
10182
1315-
1316QQuickPixmap::QQuickPixmap(QQmlEngine *engine, const QUrl &url, const QSize &size)-
1317: d(nullptr)-
1318{-
1319 load(engine, url, size);-
1320}
executed 84 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
84
1321-
1322QQuickPixmap::QQuickPixmap(const QUrl &url, const QImage &image)-
1323{-
1324 d = new QQuickPixmapData(this, url, new QQuickDefaultTextureFactory(image), image.size(), QSize(), QQuickImageProviderOptions(), QQuickImageProviderOptions::UsePluginDefaultTransform);-
1325 d->addToCache();-
1326}
executed 60 times by 2 tests: end of block
Executed by:
  • tst_qquickanimatedimage
  • tst_qquickitem2
60
1327-
1328QQuickPixmap::~QQuickPixmap()-
1329{-
1330 if (d
dDescription
TRUEevaluated 14746 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
FALSEevaluated 868 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickpixmapcache
) {
868-14746
1331 d->declarativePixmaps.remove(this);-
1332 d->release();-
1333 d = nullptr;-
1334 }
executed 14746 times by 40 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • ...
14746
1335}
executed 15614 times by 45 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinfo
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • ...
15614
1336-
1337bool QQuickPixmap::isNull() const-
1338{-
1339 return
executed 594 times by 3 tests: return d == nullptr;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickpixmapcache
d == nullptr;
executed 594 times by 3 tests: return d == nullptr;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickpixmapcache
594
1340}-
1341-
1342bool QQuickPixmap::isReady() const-
1343{-
1344 return
executed 253 times by 23 tests: return status() == Ready;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
status() == Ready;
executed 253 times by 23 tests: return status() == Ready;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
253
1345}-
1346-
1347bool QQuickPixmap::isError() const-
1348{-
1349 return
executed 5616 times by 13 tests: return status() == Error;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickmaskextruder
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_sharedimage
status() == Error;
executed 5616 times by 13 tests: return status() == Error;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickmaskextruder
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_sharedimage
5616
1350}-
1351-
1352bool QQuickPixmap::isLoading() const-
1353{-
1354 return
executed 6134 times by 34 tests: return status() == Loading;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • ...
status() == Loading;
executed 6134 times by 34 tests: return status() == Loading;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • ...
6134
1355}-
1356-
1357QString QQuickPixmap::error() const-
1358{-
1359 if (d
dDescription
TRUEevaluated 124 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
FALSEnever evaluated
)
0-124
1360 return
executed 124 times by 7 tests: return d->errorString;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
d->errorString;
executed 124 times by 7 tests: return d->errorString;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
124
1361 else-
1362 return
never executed: return QString();
QString();
never executed: return QString();
0
1363}-
1364-
1365QQuickPixmap::Status QQuickPixmap::status() const-
1366{-
1367 if (d
dDescription
TRUEevaluated 11935 times by 38 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
FALSEevaluated 240 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
240-11935
1368 return
executed 11935 times by 38 tests: return d->pixmapStatus;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
d->pixmapStatus;
executed 11935 times by 38 tests: return d->pixmapStatus;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
11935
1369 else-
1370 return
executed 240 times by 21 tests: return Null;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
Null;
executed 240 times by 21 tests: return Null;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
240
1371}-
1372-
1373const QUrl &QQuickPixmap::url() const-
1374{-
1375 if (d
dDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1376 return
never executed: return d->url;
d->url;
never executed: return d->url;
0
1377 else-
1378 return
never executed: return nullPixmap()->url;
nullPixmap()->url;
never executed: return nullPixmap()->url;
0
1379}-
1380-
1381const QSize &QQuickPixmap::implicitSize() const-
1382{-
1383 if (d
dDescription
TRUEevaluated 186 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquicktext
FALSEnever evaluated
)
0-186
1384 return
executed 186 times by 3 tests: return d->implicitSize;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquicktext
d->implicitSize;
executed 186 times by 3 tests: return d->implicitSize;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquicktext
186
1385 else-
1386 return
never executed: return nullPixmap()->size;
nullPixmap()->size;
never executed: return nullPixmap()->size;
0
1387}-
1388-
1389const QSize &QQuickPixmap::requestSize() const-
1390{-
1391 if (d
dDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1392 return
never executed: return d->requestSize;
d->requestSize;
never executed: return d->requestSize;
0
1393 else-
1394 return
never executed: return nullPixmap()->size;
nullPixmap()->size;
never executed: return nullPixmap()->size;
0
1395}-
1396-
1397QQuickImageProviderOptions::AutoTransform QQuickPixmap::autoTransform() const-
1398{-
1399 if (d
dDescription
TRUEevaluated 5314 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
FALSEevaluated 100 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_qquickimageprovider
)
100-5314
1400 return
executed 5314 times by 10 tests: return d->appliedTransform;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
d->appliedTransform;
executed 5314 times by 10 tests: return d->appliedTransform;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
5314
1401 else-
1402 return
executed 100 times by 3 tests: return QQuickImageProviderOptions::UsePluginDefaultTransform;
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_qquickimageprovider
QQuickImageProviderOptions::UsePluginDefaultTransform;
executed 100 times by 3 tests: return QQuickImageProviderOptions::UsePluginDefaultTransform;
Executed by:
  • tst_examples
  • tst_qquickimage
  • tst_qquickimageprovider
100
1403}-
1404-
1405QQuickTextureFactory *QQuickPixmap::textureFactory() const-
1406{-
1407 if (d
dDescription
TRUEevaluated 5197 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
FALSEevaluated 76 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
)
76-5197
1408 return
executed 5197 times by 8 tests: return d->textureFactory;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
d->textureFactory;
executed 5197 times by 8 tests: return d->textureFactory;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
5197
1409-
1410 return
executed 76 times by 2 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_qquickimage
nullptr;
executed 76 times by 2 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_qquickimage
76
1411}-
1412-
1413QImage QQuickPixmap::image() const-
1414{-
1415 if (d
dDescription
TRUEevaluated 391 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktrailemitter
  • ...
FALSEnever evaluated
&& d->textureFactory
d->textureFactoryDescription
TRUEevaluated 333 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktextedit
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • ...
FALSEevaluated 58 times by 3 tests
Evaluated by:
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
)
0-391
1416 return
executed 333 times by 27 tests: return d->textureFactory->image();
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktextedit
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • ...
d->textureFactory->image();
executed 333 times by 27 tests: return d->textureFactory->image();
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktextedit
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • ...
333
1417 return
executed 58 times by 3 tests: return QImage();
Executed by:
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
QImage();
executed 58 times by 3 tests: return QImage();
Executed by:
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
58
1418}-
1419-
1420void QQuickPixmap::setImage(const QImage &p)-
1421{-
1422 clear();-
1423-
1424 if (!p.isNull()
!p.isNull()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickanimatedimage
FALSEevaluated 188 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
)
12-188
1425 d = new QQuickPixmapData(this, QQuickTextureFactory::textureFactoryForImage(p));
executed 12 times by 1 test: d = new QQuickPixmapData(this, QQuickTextureFactory::textureFactoryForImage(p));
Executed by:
  • tst_qquickanimatedimage
12
1426}
executed 200 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
200
1427-
1428void QQuickPixmap::setPixmap(const QQuickPixmap &other)-
1429{-
1430 clear();-
1431-
1432 if (other.d
other.dDescription
TRUEevaluated 404 times by 1 test
Evaluated by:
  • tst_qquickanimatedimage
FALSEnever evaluated
) {
0-404
1433 d = other.d;-
1434 d->addref();-
1435 d->declarativePixmaps.insert(this);-
1436 }
executed 404 times by 1 test: end of block
Executed by:
  • tst_qquickanimatedimage
404
1437}
executed 404 times by 1 test: end of block
Executed by:
  • tst_qquickanimatedimage
404
1438-
1439int QQuickPixmap::width() const-
1440{-
1441 if (d
dDescription
TRUEevaluated 27190 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
FALSEevaluated 644 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_sharedimage
&& d->textureFactory
d->textureFactoryDescription
TRUEevaluated 27138 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
FALSEevaluated 52 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickpixmapcache
)
52-27190
1442 return
executed 27138 times by 12 tests: return d->textureFactory->textureSize().width();
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
d->textureFactory->textureSize().width();
executed 27138 times by 12 tests: return d->textureFactory->textureSize().width();
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
27138
1443 else-
1444 return
executed 696 times by 8 tests: return 0;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_sharedimage
0;
executed 696 times by 8 tests: return 0;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_sharedimage
696
1445}-
1446-
1447int QQuickPixmap::height() const-
1448{-
1449 if (d
dDescription
TRUEevaluated 27134 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
FALSEevaluated 560 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickshadereffect
&& d->textureFactory
d->textureFactoryDescription
TRUEevaluated 27102 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
)
32-27134
1450 return
executed 27102 times by 11 tests: return d->textureFactory->textureSize().height();
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
d->textureFactory->textureSize().height();
executed 27102 times by 11 tests: return d->textureFactory->textureSize().height();
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_scenegraph
  • tst_sharedimage
27102
1451 else-
1452 return
executed 592 times by 6 tests: return 0;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickshadereffect
0;
executed 592 times by 6 tests: return 0;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickshadereffect
592
1453}-
1454-
1455QRect QQuickPixmap::rect() const-
1456{-
1457 if (d
dDescription
TRUEevaluated 5055 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
FALSEnever evaluated
&& d->textureFactory
d->textureFactoryDescription
TRUEevaluated 5055 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
FALSEnever evaluated
)
0-5055
1458 return
executed 5055 times by 8 tests: return QRect(QPoint(), d->textureFactory->textureSize());
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
QRect(QPoint(), d->textureFactory->textureSize());
executed 5055 times by 8 tests: return QRect(QPoint(), d->textureFactory->textureSize());
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
5055
1459 else-
1460 return
never executed: return QRect();
QRect();
never executed: return QRect();
0
1461}-
1462-
1463void QQuickPixmap::load(QQmlEngine *engine, const QUrl &url)-
1464{-
1465 load(engine, url, QSize(), QQuickPixmap::Cache);-
1466}
executed 10723 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • tst_qquicktextedit
  • ...
10723
1467-
1468void QQuickPixmap::load(QQmlEngine *engine, const QUrl &url, QQuickPixmap::Options options)-
1469{-
1470 load(engine, url, QSize(), options);-
1471}
executed 34 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickpixmapcache
34
1472-
1473void QQuickPixmap::load(QQmlEngine *engine, const QUrl &url, const QSize &size)-
1474{-
1475 load(engine, url, size, QQuickPixmap::Cache);-
1476}
executed 84 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
84
1477-
1478void QQuickPixmap::load(QQmlEngine *engine, const QUrl &url, const QSize &requestSize, QQuickPixmap::Options options)-
1479{-
1480 load(engine, url, requestSize, options, QQuickImageProviderOptions());-
1481}
executed 10959 times by 29 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquicktargetdirection
  • tst_qquicktext
  • ...
10959
1482-
1483void QQuickPixmap::load(QQmlEngine *engine, const QUrl &url, const QSize &requestSize, QQuickPixmap::Options options, const QQuickImageProviderOptions &providerOptions)-
1484{-
1485 if (d
dDescription
TRUEnever evaluated
FALSEevaluated 16403 times by 39 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • ...
) {
0-16403
1486 d->declarativePixmaps.remove(this);-
1487 d->release();-
1488 d = nullptr;-
1489 }
never executed: end of block
0
1490-
1491 QQuickPixmapKey key = { &url, &requestSize, providerOptions };-
1492 QQuickPixmapStore *store = pixmapStore();-
1493-
1494 QHash<QQuickPixmapKey, QQuickPixmapData *>::Iterator iter = store->m_cache.end();-
1495-
1496-
1497-
1498-
1499 if (url.scheme() == itemGrabberScheme
url.scheme() =...mGrabberSchemeDescription
TRUEnever evaluated
FALSEevaluated 16403 times by 39 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • ...
) {
0-16403
1500 QSize dummy;-
1501 if (requestSize != dummy
requestSize != dummyDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1502 QMessageLogger(__FILE__, 1548, __PRETTY_FUNCTION__).warning() << "Ignoring sourceSize request for image url that came from grabToImage. Use the targetSize parameter of the grabToImage() function instead.";
never executed: QMessageLogger(__FILE__, 1548, __PRETTY_FUNCTION__).warning() << "Ignoring sourceSize request for image url that came from grabToImage. Use the targetSize parameter of the grabToImage() function instead.";
0
1503 const QQuickPixmapKey grabberKey = { &url, &dummy, QQuickImageProviderOptions() };-
1504 iter = store->m_cache.find(grabberKey);-
1505 }
never executed: end of block
else if (options & QQuickPixmap::Cache
options & QQuickPixmap::CacheDescription
TRUEevaluated 16355 times by 38 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • ...
FALSEevaluated 48 times by 3 tests
Evaluated by:
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_sharedimage
)
0-16355
1506 iter = store->m_cache.find(key);
executed 16355 times by 38 tests: iter = store->m_cache.find(key);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • ...
16355
1507-
1508 if (iter == store->m_cache.end()
iter == store->m_cache.end()Description
TRUEevaluated 11236 times by 38 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
FALSEevaluated 5167 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktrailemitter
  • tst_scenegraph
) {
5167-11236
1509 if (url.scheme() == QLatin1String("image")
url.scheme() =...tring("image")Description
TRUEevaluated 8130 times by 5 tests
Evaluated by:
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
FALSEevaluated 3106 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
) {
3106-8130
1510 if (QQuickImageProvider *provider = static_cast<QQuickImageProvider *>(engine->imageProvider(imageProviderId(url)))
QQuickImagePro...viderId(url)))Description
TRUEevaluated 8118 times by 5 tests
Evaluated by:
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
) {
12-8118
1511 const bool threadedPixmaps = QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::ThreadedPixmaps);-
1512 if (!threadedPixmaps
!threadedPixmapsDescription
TRUEnever evaluated
FALSEevaluated 8118 times by 5 tests
Evaluated by:
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
&& provider->imageType() == QQuickImageProvider::Pixmap
provider->imag...ovider::PixmapDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-8118
1513-
1514 options &= ~QQuickPixmap::Asynchronous;-
1515 }
never executed: end of block
else if (provider->flags() & QQuickImageProvider::ForceAsynchronousImageLoading
provider->flag...usImageLoadingDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qquickimageprovider
FALSEevaluated 8086 times by 5 tests
Evaluated by:
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
) {
0-8086
1516 options |= QQuickPixmap::Asynchronous;-
1517 }
executed 32 times by 1 test: end of block
Executed by:
  • tst_qquickimageprovider
32
1518 }
executed 8118 times by 5 tests: end of block
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
8118
1519 }
executed 8130 times by 5 tests: end of block
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_sharedimage
8130
1520-
1521 if (!(options & QQuickPixmap::Asynchronous)
!(options & QQ...:Asynchronous)Description
TRUEevaluated 11142 times by 38 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
FALSEevaluated 94 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
) {
94-11142
1522 bool ok = false;-
1523 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEevaluated 11142 times by 38 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
) { QQuickProfiler::pixmapStateChanged<QQuickProfiler::PixmapLoadingStarted>(url); }
never executed: end of block
else (
executed 11142 times by 38 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
void)0;
executed 11142 times by 38 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
0-11142
1524 d = createPixmapDataSync(this, engine, url, requestSize, providerOptions, &ok);-
1525 if (ok
okDescription
TRUEevaluated 8754 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • ...
FALSEevaluated 2388 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
2388-8754
1526 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEevaluated 8754 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • ...
) { QQuickProfiler::pixmapLoadingFinished(url, QSize(width(), height())); }
never executed: end of block
else (
executed 8754 times by 35 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • ...
void)0;
executed 8754 times by 35 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • ...
0-8754
1527 if (options & QQuickPixmap::Cache
options & QQuickPixmap::CacheDescription
TRUEevaluated 8710 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • ...
FALSEevaluated 44 times by 3 tests
Evaluated by:
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_sharedimage
)
44-8710
1528 d->addToCache();
executed 8710 times by 34 tests: d->addToCache();
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • ...
8710
1529 return;
executed 8754 times by 35 tests: return;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • ...
8754
1530 }-
1531 if (d
dDescription
TRUEevaluated 106 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 2282 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
106-2282
1532 if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)
QQuickProfiler...lePixmapCache)Description
TRUEnever evaluated
FALSEevaluated 106 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) { QQuickProfiler::pixmapStateChanged<QQuickProfiler::PixmapLoadingError>(url); }
never executed: end of block
else (
executed 106 times by 7 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
void)0;
executed 106 times by 7 tests: (void)0;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
0-106
1533 return;
executed 106 times by 7 tests: return;
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
106
1534 }-
1535 }
executed 2282 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
2282
1536-
1537 if (!engine
!engineDescription
TRUEnever evaluated
FALSEevaluated 2376 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
)
0-2376
1538 return;
never executed: return;
0
1539-
1540-
1541 d = new QQuickPixmapData(this, url, requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform);-
1542 if (options & QQuickPixmap::Cache
options & QQuickPixmap::CacheDescription
TRUEevaluated 2372 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_sharedimage
)
4-2372
1543 d->addToCache();
executed 2372 times by 9 tests: d->addToCache();
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
2372
1544-
1545 QQuickPixmapReader::readerMutex.lock();-
1546 d->reply = QQuickPixmapReader::instance(engine)->getImage(d);-
1547 QQuickPixmapReader::readerMutex.unlock();-
1548 }
executed 2376 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_sharedimage
else {
2376
1549 d = *iter;-
1550 d->addref();-
1551 d->declarativePixmaps.insert(this);-
1552 }
executed 5167 times by 18 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktrailemitter
  • tst_scenegraph
5167
1553}-
1554-
1555void QQuickPixmap::clear()-
1556{-
1557 if (d
dDescription
TRUEevaluated 528 times by 2 tests
Evaluated by:
  • tst_qquickanimatedimage
  • tst_qquickpixmapcache
FALSEevaluated 278 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
) {
278-528
1558 d->declarativePixmaps.remove(this);-
1559 d->release();-
1560 d = nullptr;-
1561 }
executed 528 times by 2 tests: end of block
Executed by:
  • tst_qquickanimatedimage
  • tst_qquickpixmapcache
528
1562}
executed 806 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickpixmapcache
806
1563-
1564void QQuickPixmap::clear(QObject *obj)-
1565{-
1566 if (d
dDescription
TRUEevaluated 327 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquicktrailemitter
FALSEevaluated 5672 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • ...
) {
327-5672
1567 if (d->reply
d->replyDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickpixmapcache
FALSEevaluated 325 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickparticlegroup
  • tst_qquickshadereffect
  • tst_qquicktrailemitter
)
2-325
1568 QObject::disconnect(d->reply, nullptr, obj, nullptr);
executed 2 times by 1 test: QObject::disconnect(d->reply, nullptr, obj, nullptr);
Executed by:
  • tst_qquickpixmapcache
2
1569 d->declarativePixmaps.remove(this);-
1570 d->release();-
1571 d = nullptr;-
1572 }
executed 327 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_qquickparticlegroup
  • tst_qquickpixmapcache
  • tst_qquickshadereffect
  • tst_qquicktrailemitter
327
1573}
executed 5999 times by 36 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickimageprovider
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • ...
5999
1574-
1575bool QQuickPixmap::isCached(const QUrl &url, const QSize &requestSize, const QQuickImageProviderOptions &options)-
1576{-
1577 QQuickPixmapKey key = { &url, &requestSize, options };-
1578 QQuickPixmapStore *store = pixmapStore();-
1579-
1580 return
executed 220 times by 1 test: return store->m_cache.contains(key);
Executed by:
  • tst_qquickanimatedimage
store->m_cache.contains(key);
executed 220 times by 1 test: return store->m_cache.contains(key);
Executed by:
  • tst_qquickanimatedimage
220
1581}-
1582-
1583bool QQuickPixmap::connectFinished(QObject *object, const char *method)-
1584{-
1585 if (!d
!dDescription
TRUEnever evaluated
FALSEevaluated 34 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
|| !d->reply
!d->replyDescription
TRUEnever evaluated
FALSEevaluated 34 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
) {
0-34
1586 QMessageLogger(__FILE__, 1632, __PRETTY_FUNCTION__).warning("QQuickPixmap: connectFinished() called when not loading.");-
1587 return
never executed: return false;
false;
never executed: return false;
0
1588 }-
1589-
1590 return
executed 34 times by 4 tests: return QObject::connect(d->reply, qFlagLocation("2""finished()" "\0" __FILE__ ":" "1636"), object, method);
Executed by:
  • tst_examples
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
QObject::connect(d->reply, qFlagLocation("2""finished()" "\0" __FILE__ ":" "1636"), object, method);
executed 34 times by 4 tests: return QObject::connect(d->reply, qFlagLocation("2""finished()" "\0" __FILE__ ":" "1636"), object, method);
Executed by:
  • tst_examples
  • tst_qquickpixmapcache
  • tst_qquicktext
  • tst_qquicktextedit
34
1591}-
1592-
1593bool QQuickPixmap::connectFinished(QObject *object, int method)-
1594{-
1595 if (!d
!dDescription
TRUEnever evaluated
FALSEevaluated 152 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
|| !d->reply
!d->replyDescription
TRUEnever evaluated
FALSEevaluated 152 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
) {
0-152
1596 QMessageLogger(__FILE__, 1642, __PRETTY_FUNCTION__).warning("QQuickPixmap: connectFinished() called when not loading.");-
1597 return
never executed: return false;
false;
never executed: return false;
0
1598 }-
1599-
1600 return
executed 152 times by 7 tests: return QMetaObject::connect(d->reply, QQuickPixmapReply::finishedIndex, object, method);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
QMetaObject::connect(d->reply, QQuickPixmapReply::finishedIndex, object, method);
executed 152 times by 7 tests: return QMetaObject::connect(d->reply, QQuickPixmapReply::finishedIndex, object, method);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
152
1601}-
1602-
1603bool QQuickPixmap::connectDownloadProgress(QObject *object, const char *method)-
1604{-
1605 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
|| !d->reply
!d->replyDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1606 QMessageLogger(__FILE__, 1652, __PRETTY_FUNCTION__).warning("QQuickPixmap: connectDownloadProgress() called when not loading.");-
1607 return
never executed: return false;
false;
never executed: return false;
0
1608 }-
1609-
1610 return
never executed: return QObject::connect(d->reply, qFlagLocation("2""downloadProgress(qint64,qint64)" "\0" __FILE__ ":" "1656"), object, method);
QObject::connect(d->reply, qFlagLocation("2""downloadProgress(qint64,qint64)" "\0" __FILE__ ":" "1656"), object, method);
never executed: return QObject::connect(d->reply, qFlagLocation("2""downloadProgress(qint64,qint64)" "\0" __FILE__ ":" "1656"), object, method);
0
1611}-
1612-
1613bool QQuickPixmap::connectDownloadProgress(QObject *object, int method)-
1614{-
1615 if (!d
!dDescription
TRUEnever evaluated
FALSEevaluated 152 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
|| !d->reply
!d->replyDescription
TRUEnever evaluated
FALSEevaluated 152 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
) {
0-152
1616 QMessageLogger(__FILE__, 1662, __PRETTY_FUNCTION__).warning("QQuickPixmap: connectDownloadProgress() called when not loading.");-
1617 return
never executed: return false;
false;
never executed: return false;
0
1618 }-
1619-
1620 return
executed 152 times by 7 tests: return QMetaObject::connect(d->reply, QQuickPixmapReply::downloadProgressIndex, object, method);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
QMetaObject::connect(d->reply, QQuickPixmapReply::downloadProgressIndex, object, method);
executed 152 times by 7 tests: return QMetaObject::connect(d->reply, QQuickPixmapReply::downloadProgressIndex, object, method);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickanchors
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickimageprovider
  • tst_sharedimage
152
1621}-
1622-
1623-
1624-
1625-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0