Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | const QLatin1String QQuickPixmap::itemGrabberScheme = QLatin1String("itemgrabber"); | - |
12 | | - |
13 | | - |
14 | static const bool qsg_leak_check = !qEnvironmentVariableIsEmpty("QML_LEAK_CHECK"); | - |
15 | | - |
16 | | - |
17 | | - |
18 | static int cache_limit = 2048 * 1024; | - |
19 | | - |
20 | static inline QString imageProviderId(const QUrl &url) | - |
21 | { | - |
22 | returnexecuted 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 | | - |
25 | static inline QString imageId(const QUrl &url) | - |
26 | { | - |
27 | returnexecuted 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 | | - |
30 | QQuickDefaultTextureFactory::QQuickDefaultTextureFactory(const QImage &image) | - |
31 | { | - |
32 | if (image.format() == QImage::Format_ARGB32_PremultipliedTRUE | evaluated 22 times by 2 testsEvaluated by:- tst_qquickanimatedimage
- tst_qquickitem2
| FALSE | evaluated 8912 times by 37 testsEvaluated 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_RGB32TRUE | evaluated 8306 times by 9 testsEvaluated by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquickstates
- tst_scenegraph
- tst_sharedimage
| FALSE | evaluated 606 times by 34 testsEvaluated 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 | | - |
42 | QSGTexture *QQuickDefaultTextureFactory::createTexture(QQuickWindow *window) const | - |
43 | { | - |
44 | QSGTexture *t = window->createTextureFromImage(im, QQuickWindow::TextureCanUseAtlas); | - |
45 | static bool transient = qEnvironmentVariableIsSet("QSG_TRANSIENT_IMAGES"); | - |
46 | if (transientTRUE | never evaluated | FALSE | evaluated 367 times by 8 testsEvaluated 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 | returnexecuted 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 | | - |
51 | class QQuickPixmapReader; | - |
52 | class QQuickPixmapData; | - |
53 | class 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 {}; | - |
64 | public: | - |
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 | | - |
92 | public : | - |
93 | void finished(); | - |
94 | void downloadProgress(qint64, qint64); | - |
95 | | - |
96 | protected: | - |
97 | bool event(QEvent *event) override; | - |
98 | | - |
99 | private: | - |
100 | QQuickPixmapReply(const QQuickPixmapReply &) = delete; QQuickPixmapReply &operator=(const QQuickPixmapReply &) = delete; | - |
101 | | - |
102 | public: | - |
103 | static int finishedIndex; | - |
104 | static int downloadProgressIndex; | - |
105 | }; | - |
106 | | - |
107 | class 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 {}; | - |
117 | public: | - |
118 | QQuickPixmapReaderThreadObject(QQuickPixmapReader *); | - |
119 | void processJobs(); | - |
120 | bool event(QEvent *e) override; | - |
121 | public : | - |
122 | void asyncResponseFinished(QQuickImageResponse *response); | - |
123 | private : | - |
124 | void networkRequestDone(); | - |
125 | void asyncResponseFinished(); | - |
126 | private: | - |
127 | QQuickPixmapReader *reader; | - |
128 | }; | - |
129 | | - |
130 | class QQuickPixmapData; | - |
131 | class 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 {}; | - |
142 | public: | - |
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 | | - |
152 | protected: | - |
153 | void run() override; | - |
154 | | - |
155 | private: | - |
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; | - |
185 | public: | - |
186 | static QMutex readerMutex; | - |
187 | }; | - |
188 | | - |
189 | class QQuickPixmapData | - |
190 | { | - |
191 | public: | - |
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 (textureTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
) | 0-12 |
230 | requestSize = implicitSize = texture->textureSize();executed 12 times by 1 test: requestSize = implicitSize = texture->textureSize(); | 12 |
231 | declarativePixmaps.insert(pixmap); | - |
232 | }executed 12 times by 1 test: end of block | 12 |
233 | | - |
234 | ~QQuickPixmapData() | - |
235 | { | - |
236 | while (!declarativePixmaps.isEmpty()TRUE | evaluated 1278 times by 3 testsEvaluated by:- tst_qquickborderimage
- tst_qquickimageprovider
- tst_qquickitemparticle
| FALSE | evaluated 11308 times by 40 testsEvaluated 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 | | - |
272 | int QQuickPixmapReply::finishedIndex = -1; | - |
273 | int QQuickPixmapReply::downloadProgressIndex = -1; | - |
274 | | - |
275 | | - |
276 | QHash<QQmlEngine *,QQuickPixmapReader*> QQuickPixmapReader::readers; | - |
277 | QMutex QQuickPixmapReader::readerMutex; | - |
278 | | - |
279 | int QQuickPixmapReader::replyDownloadProgress = -1; | - |
280 | int QQuickPixmapReader::replyFinished = -1; | - |
281 | int QQuickPixmapReader::downloadProgress = -1; | - |
282 | int QQuickPixmapReader::threadNetworkRequestDone = -1; | - |
283 | | - |
284 | | - |
285 | void 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 | | - |
292 | QQuickPixmapReply::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 | | - |
297 | QQuickPixmapReply::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 | | - |
303 | QNetworkAccessManager *QQuickPixmapReader::networkAccessManager() | - |
304 | { | - |
305 | if (!accessManagerTRUE | evaluated 32 times by 8 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
| FALSE | evaluated 299 times by 6 testsEvaluated 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 | returnexecuted 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 | | - |
313 | static void maybeRemoveAlpha(QImage *image) | - |
314 | { | - |
315 | | - |
316 | if (image->hasAlphaChannel()TRUE | evaluated 570 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 184 times by 8 testsEvaluated by:- tst_examples
- tst_qquickanimatedsprite
- tst_qquickimage
- tst_qquickpixmapcache
- tst_qquickspritesequence
- tst_qquickstates
- tst_scenegraph
- tst_sharedimage
|
&& image->data_ptr()TRUE | evaluated 570 times by 34 testsEvaluated 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
- ...
| FALSE | never evaluated |
| 0-570 |
317 | && !image->data_ptr()->checkForAlphaPixels()TRUE | evaluated 34 times by 3 testsEvaluated by:- tst_examples
- tst_qquickimage
- tst_scenegraph
| FALSE | evaluated 536 times by 33 testsEvaluated 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 | defaultexecuted 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 | | - |
336 | static 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::UsePluginDefaultTransformTRUE | never evaluated | FALSE | evaluated 754 times by 35 testsEvaluated 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 (appliedTransformTRUE | evaluated 698 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 56 times by 7 testsEvaluated 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()TRUE | never evaluated | FALSE | evaluated 698 times by 34 testsEvaluated 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()TRUE | evaluated 36 times by 5 testsEvaluated by:- tst_examples
- tst_qquickimage
- tst_qquickshadereffect
- tst_qquicktext
- tst_sharedimage
| FALSE | evaluated 718 times by 35 testsEvaluated 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 (impsizeTRUE | evaluated 754 times by 35 testsEvaluated 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
- ...
| FALSE | never 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)TRUE | evaluated 754 times by 35 testsEvaluated 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
- ...
| FALSE | never evaluated |
) { | 0-754 |
354 | maybeRemoveAlpha(image); | - |
355 | if (impsizeTRUE | evaluated 754 times by 35 testsEvaluated 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
- ...
| FALSE | never evaluated |
&& impsize->width() < 0TRUE | never evaluated | FALSE | evaluated 754 times by 35 testsEvaluated 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 | returnexecuted 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 (errorStringTRUE | never evaluated | FALSE | never 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 | | - |
366 | static 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 | returnexecuted 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 | | - |
375 | class BackendSupport | - |
376 | { | - |
377 | public: | - |
378 | BackendSupport() | - |
379 | { | - |
380 | delete QSGContext::createTextureFactoryFromImage(QImage()); | - |
381 | hasOpenGL = QQuickWindow::sceneGraphBackend().isEmpty(); | - |
382 | QList<QByteArray> list; | - |
383 | if (hasOpenGLTRUE | evaluated 68 times by 34 testsEvaluated 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
- ...
| FALSE | never 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 | }; | - |
391 | namespace { 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::InitializedTRUE | evaluated 68 times by 34 testsEvaluated 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
- ...
| FALSE | never 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; returnexecuted 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 | | - |
393 | static QString existingImageFileForPath(const QString &localFile) | - |
394 | { | - |
395 | | - |
396 | QFileInfo fi(localFile); | - |
397 | if (!fi.suffix().isEmpty()TRUE | evaluated 800 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 12 times by 1 test |
|| fi.exists()TRUE | never evaluated | FALSE | evaluated 12 times by 1 test |
) | 0-800 |
398 | returnexecuted 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)TRUE | evaluated 10 times by 1 test | FALSE | evaluated 88 times by 1 test |
) | 10-88 |
405 | returnexecuted 10 times by 1 test: return tryFile; tryFile;executed 10 times by 1 test: return tryFile; | 10 |
406 | }executed 88 times by 1 test: end of block | 88 |
407 | returnexecuted 2 times by 1 test: return localFile; localFile;executed 2 times by 1 test: return localFile; | 2 |
408 | } | - |
409 | | - |
410 | QQuickPixmapReader::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 | | - |
422 | QQuickPixmapReader::~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->dataTRUE | never evaluated | FALSE | never evaluated |
&& reply->data->reply == replyTRUE | never evaluated | FALSE | never 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->loadingTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) { | 0-2 |
440 | cancelled.append(reply); | - |
441 | reply->data = nullptr; | - |
442 | }executed 2 times by 1 test: end of block | 2 |
443 | }executed 2 times by 1 test: end of block ; | 2 |
444 | | - |
445 | for (auto *reply : qAsConst(networkJobs)) | - |
446 | cancelJob(reply);executed 2 times by 1 test: cancelJob(reply); | 2 |
447 | | - |
448 | for (auto *reply : qAsConst(asyncResponses)) | - |
449 | cancelJob(reply); never executed: cancelJob(reply); | 0 |
450 | | - |
451 | if (threadObjectTRUE | evaluated 80 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | never 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 | | - |
459 | void QQuickPixmapReader::networkRequestDone(QNetworkReply *reply) | - |
460 | { | - |
461 | QQuickPixmapReply *job = networkJobs.take(reply); | - |
462 | | - |
463 | if (jobTRUE | evaluated 62 times by 6 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
| FALSE | evaluated 265 times by 3 testsEvaluated by:- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
|
) { | 62-265 |
464 | job->redirectCount++; | - |
465 | if (job->redirectCount < 16TRUE | evaluated 62 times by 6 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
| FALSE | never evaluated |
) { | 0-62 |
466 | QVariant redirect = reply->attribute(QNetworkRequest::RedirectionTargetAttribute); | - |
467 | if (redirect.isValid()TRUE | never evaluated | FALSE | evaluated 62 times by 6 testsEvaluated 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()TRUE | evaluated 16 times by 4 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickpixmapcache
- tst_qquicktextedit
| FALSE | evaluated 46 times by 5 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 46 times by 5 testsEvaluated 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)TRUE | evaluated 62 times by 6 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
| FALSE | never 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 | | - |
510 | void QQuickPixmapReader::asyncResponseFinished(QQuickImageResponse *response) | - |
511 | { | - |
512 | QQuickPixmapReply *job = asyncResponses.take(response); | - |
513 | | - |
514 | if (jobTRUE | evaluated 16 times by 1 test | FALSE | never evaluated |
) { | 0-16 |
515 | QQuickTextureFactory *t = nullptr; | - |
516 | QQuickPixmapReply::ReadError error = QQuickPixmapReply::NoError; | - |
517 | QString errorString; | - |
518 | if (!response->errorString().isEmpty()TRUE | never evaluated | FALSE | evaluated 16 times by 1 test |
) { | 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 | 16 |
524 | mutex.lock(); | - |
525 | if (!cancelled.contains(job)TRUE | evaluated 16 times by 1 test | FALSE | never 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); | 16 |
527 | else | - |
528 | delete t; never executed: delete t; | 0 |
529 | mutex.unlock(); | - |
530 | }executed 16 times by 1 test: end of block | 16 |
531 | response->deleteLater(); | - |
532 | | - |
533 | | - |
534 | threadObject->processJobs(); | - |
535 | }executed 16 times by 1 test: end of block | 16 |
536 | | - |
537 | QQuickPixmapReaderThreadObject::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 | | - |
542 | void 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 | | - |
547 | bool QQuickPixmapReaderThreadObject::event(QEvent *e) | - |
548 | { | - |
549 | if (e->type() == QEvent::UserTRUE | evaluated 2966 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 48 times by 9 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
557 | void 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 | | - |
565 | void QQuickPixmapReaderThreadObject::asyncResponseFinished(QQuickImageResponse *response) | - |
566 | { | - |
567 | reader->asyncResponseFinished(response); | - |
568 | }executed 16 times by 1 test: end of block | 16 |
569 | | - |
570 | void QQuickPixmapReaderThreadObject::asyncResponseFinished() | - |
571 | { | - |
572 | QQuickImageResponse *response = static_cast<QQuickImageResponse *>(sender()); | - |
573 | asyncResponseFinished(response); | - |
574 | }executed 8 times by 1 test: end of block | 8 |
575 | | - |
576 | void QQuickPixmapReader::processJobs() | - |
577 | { | - |
578 | QMutexLocker locker(&mutex); | - |
579 | | - |
580 | while (true) { | - |
581 | if (cancelled.isEmpty()TRUE | evaluated 3244 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 259 times by 5 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
|
&& jobs.isEmpty()TRUE | evaluated 3046 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 198 times by 10 testsEvaluated 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()TRUE | evaluated 259 times by 5 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
| FALSE | evaluated 198 times by 10 testsEvaluated 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()TRUE | evaluated 269 times by 5 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
| FALSE | evaluated 259 times by 5 testsEvaluated 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 (replyTRUE | evaluated 269 times by 5 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
| FALSE | never evaluated |
) { | 0-269 |
591 | networkJobs.remove(reply); | - |
592 | if (reply->isRunning()TRUE | evaluated 269 times by 5 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
| FALSE | never 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 (asyncResponseTRUE | never evaluated | FALSE | never 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)TRUE | never evaluated | FALSE | evaluated 269 times by 5 testsEvaluated 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()TRUE | evaluated 411 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 46 times by 5 testsEvaluated 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; !usableJobTRUE | evaluated 411 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 411 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
|
&& i >= 0TRUE | evaluated 411 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | never 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")TRUE | evaluated 64 times by 3 testsEvaluated by:- tst_qquickimage
- tst_qquickimageprovider
- tst_sharedimage
| FALSE | evaluated 347 times by 9 testsEvaluated 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 (providerTRUE | evaluated 62 times by 3 testsEvaluated by:- tst_qquickimage
- tst_qquickimageprovider
- tst_sharedimage
| FALSE | evaluated 2 times by 1 test |
) | 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()TRUE | evaluated 16 times by 3 testsEvaluated by:- tst_examples
- tst_qquickimage
- tst_sharedimage
| FALSE | evaluated 331 times by 8 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
|
| 16-331 |
630 | | - |
631 | || networkJobs.count() < 8TRUE | evaluated 331 times by 8 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
| FALSE | never 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 (usableJobTRUE | evaluated 411 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | never evaluated |
) { | 0-411 |
638 | jobs.removeAt(i); | - |
639 | | - |
640 | job->loading = true; | - |
641 | | - |
642 | if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)TRUE | never evaluated | FALSE | evaluated 411 times by 10 testsEvaluated 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 (!usableJobTRUE | never evaluated | FALSE | evaluated 411 times by 10 testsEvaluated 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 | | - |
656 | void QQuickPixmapReader::processJob(QQuickPixmapReply *runningJob, const QUrl &url, const QString &localFile, | - |
657 | QQuickImageProvider::ImageType imageType, QQuickImageProvider *provider) | - |
658 | { | - |
659 | | - |
660 | if (url.scheme() == QLatin1String("image")TRUE | evaluated 64 times by 3 testsEvaluated by:- tst_qquickimage
- tst_qquickimageprovider
- tst_sharedimage
| FALSE | evaluated 347 times by 9 testsEvaluated 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::InvalidTRUE | evaluated 2 times by 1 test | FALSE | evaluated 62 times by 3 testsEvaluated 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)TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
668 | runningJob->postReply(QQuickPixmapReply::Loading, errorStr, readSize, nullptr);executed 2 times by 1 test: runningJob->postReply(QQuickPixmapReply::Loading, errorStr, readSize, nullptr); | 2 |
669 | mutex.unlock(); | - |
670 | return;executed 2 times by 1 test: return; | 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 | caseexecuted 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 (providerV2TRUE | evaluated 2 times by 1 test | FALSE | evaluated 44 times by 2 testsEvaluated 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 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()TRUE | evaluated 4 times by 1 test | FALSE | evaluated 42 times by 3 testsEvaluated 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 | 4 |
696 | mutex.lock(); | - |
697 | if (!cancelled.contains(runningJob)TRUE | evaluated 46 times by 3 testsEvaluated by:- tst_qquickimage
- tst_qquickimageprovider
- tst_sharedimage
| FALSE | never 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 (providerV2TRUE | never evaluated | FALSE | never 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()TRUE | never evaluated | FALSE | never 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)TRUE | never evaluated | FALSE | never 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 (providerV2TRUE | never evaluated | FALSE | never 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 (!tTRUE | never evaluated | FALSE | never 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)TRUE | never evaluated | FALSE | never 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 | caseexecuted 16 times by 1 test: case QQuickImageProvider::ImageResponse: QQuickImageProvider::ImageResponse:executed 16 times by 1 test: case QQuickImageProvider::ImageResponse: | 16 |
748 | { | - |
749 | QQuickImageResponse *response; | - |
750 | if (providerV2TRUE | never evaluated | FALSE | evaluated 16 times by 1 test |
) { | 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 | 16 |
756 | | - |
757 | | - |
758 | | - |
759 | if (static_cast<TRUE | evaluated 8 times by 1 test | FALSE | evaluated 8 times by 1 test |
QQuickImageResponsePrivate*>(QObjectPrivate::get(response))->finishedTRUE | evaluated 8 times by 1 test | FALSE | evaluated 8 times by 1 test |
) { | 8 |
760 | QMetaObject::invokeMethod(threadObject, "asyncResponseFinished", | - |
761 | Qt::QueuedConnection, QArgument<QQuickImageResponse* >("QQuickImageResponse*", response)); | - |
762 | }executed 8 times by 1 test: end of block 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 | 8 |
765 | | - |
766 | asyncResponses.insert(response, runningJob); | - |
767 | break;executed 16 times by 1 test: break; | 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()TRUE | evaluated 16 times by 3 testsEvaluated by:- tst_examples
- tst_qquickimage
- tst_sharedimage
| FALSE | evaluated 331 times by 8 testsEvaluated 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)TRUE | evaluated 14 times by 3 testsEvaluated by:- tst_examples
- tst_qquickimage
- tst_sharedimage
| FALSE | evaluated 2 times by 1 test |
) { | 2-14 |
780 | QSGTextureReader texReader(&f, localFile); | - |
781 | if (backendSupport()->hasOpenGLTRUE | evaluated 14 times by 3 testsEvaluated by:- tst_examples
- tst_qquickimage
- tst_sharedimage
| FALSE | never evaluated |
&& texReader.isTexture()TRUE | evaluated 4 times by 1 test | FALSE | evaluated 10 times by 3 testsEvaluated by:- tst_examples
- tst_qquickimage
- tst_sharedimage
|
) { | 0-14 |
782 | QQuickTextureFactory *factory = texReader.read(); | - |
783 | if (factoryTRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
) { | 0-4 |
784 | readSize = factory->textureSize(); | - |
785 | }executed 4 times by 1 test: end of block else { | 4 |
786 | errorStr = QQuickPixmap::tr("Error decoding: %1").arg(url.toString()); | - |
787 | if (f.fileName() != localFileTRUE | never evaluated | FALSE | never 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)TRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
) | 0-4 |
793 | runningJob->postReply(errorCode, errorStr, readSize, factory);executed 4 times by 1 test: runningJob->postReply(errorCode, errorStr, readSize, factory); | 4 |
794 | mutex.unlock(); | - |
795 | return;executed 4 times by 1 test: return; | 4 |
796 | } else { | - |
797 | if (!readImage(url, &f, &image, &errorStr, &readSize, runningJob->requestSize, runningJob->providerOptions)TRUE | never evaluated | FALSE | evaluated 10 times by 3 testsEvaluated by:- tst_examples
- tst_qquickimage
- tst_sharedimage
|
) { | 0-10 |
798 | errorCode = QQuickPixmapReply::Loading; | - |
799 | if (f.fileName() != localFileTRUE | never evaluated | FALSE | never 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 | 2 |
807 | mutex.lock(); | - |
808 | if (!cancelled.contains(runningJob)TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_examples
- tst_qquickimage
- tst_sharedimage
| FALSE | never 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 | | - |
829 | QQuickPixmapReader *QQuickPixmapReader::instance(QQmlEngine *engine) | - |
830 | { | - |
831 | | - |
832 | QQuickPixmapReader *reader = readers.value(engine); | - |
833 | if (!readerTRUE | evaluated 80 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 2296 times by 7 testsEvaluated 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 | returnexecuted 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 | | - |
841 | QQuickPixmapReader *QQuickPixmapReader::existingInstance(QQmlEngine *engine) | - |
842 | { | - |
843 | | - |
844 | returnexecuted 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 | | - |
847 | QQuickPixmapReply *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 (threadObjectTRUE | evaluated 2278 times by 6 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
| FALSE | evaluated 98 times by 10 testsEvaluated 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 | returnexecuted 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 | | - |
859 | void QQuickPixmapReader::cancel(QQuickPixmapReply *reply) | - |
860 | { | - |
861 | mutex.lock(); | - |
862 | if (reply->loadingTRUE | evaluated 267 times by 5 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
| FALSE | evaluated 1975 times by 5 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
|
) { | 267-1975 |
863 | cancelled.append(reply); | - |
864 | reply->data = nullptr; | - |
865 | | - |
866 | if (threadObjectTRUE | evaluated 267 times by 5 testsEvaluated by:- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
| FALSE | never 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) == 0TRUE | evaluated 10 times by 1 test | FALSE | evaluated 1965 times by 4 testsEvaluated by:- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
|
) { | 10-1965 |
871 | if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
) { QQuickProfiler::pixmapStateChanged<QQuickProfiler::PixmapLoadingError>(reply->url); }never executed: end of block else (executed 10 times by 1 test: (void)0; void)0;executed 10 times by 1 test: (void)0; | 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 | | - |
878 | void QQuickPixmapReader::run() | - |
879 | { | - |
880 | if (replyDownloadProgress == -1TRUE | evaluated 20 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 60 times by 5 testsEvaluated 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 | | - |
901 | class QQuickPixmapKey | - |
902 | { | - |
903 | public: | - |
904 | const QUrl *url; | - |
905 | const QSize *size; | - |
906 | QQuickImageProviderOptions options; | - |
907 | }; | - |
908 | | - |
909 | inline bool operator==(const QQuickPixmapKey &lhs, const QQuickPixmapKey &rhs) | - |
910 | { | - |
911 | returnexecuted 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 | | - |
914 | inline uint qHash(const QQuickPixmapKey &key) | - |
915 | { | - |
916 | returnexecuted 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 | | - |
919 | class 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 {}; | - |
930 | public: | - |
931 | QQuickPixmapStore(); | - |
932 | ~QQuickPixmapStore(); | - |
933 | | - |
934 | void unreferencePixmap(QQuickPixmapData *); | - |
935 | void referencePixmap(QQuickPixmapData *); | - |
936 | | - |
937 | void purgeCache(); | - |
938 | | - |
939 | protected: | - |
940 | void timerEvent(QTimerEvent *) override; | - |
941 | | - |
942 | public: | - |
943 | QHash<QQuickPixmapKey, QQuickPixmapData *> m_cache; | - |
944 | | - |
945 | private: | - |
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 | }; | - |
955 | namespace { 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::InitializedTRUE | evaluated 200 times by 93 testsEvaluated 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
- ...
| FALSE | never 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; returnexecuted 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 | | - |
958 | QQuickPixmapStore::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 | | - |
963 | QQuickPixmapStore::~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 (currRefCountTRUE | evaluated 20 times by 3 testsEvaluated by:- tst_qquickborderimage
- tst_qquickimageprovider
- tst_qquickitemparticle
| FALSE | evaluated 74 times by 3 testsEvaluated by:- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquickstates
|
) { | 20-74 |
979 | | - |
980 | leakedPixmaps++; | - |
981 | | - |
982 | while (currRefCount > 0TRUE | evaluated 1278 times by 3 testsEvaluated by:- tst_qquickborderimage
- tst_qquickimageprovider
- tst_qquickitemparticle
| FALSE | evaluated 20 times by 3 testsEvaluated 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_lastUnreferencedPixmapTRUE | evaluated 10 times by 5 testsEvaluated by:- tst_qquickborderimage
- tst_qquickimageprovider
- tst_qquickitemparticle
- tst_qquickpixmapcache
- tst_qquickstates
| FALSE | evaluated 200 times by 93 testsEvaluated 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 (leakedPixmapsTRUE | evaluated 6 times by 3 testsEvaluated by:- tst_qquickborderimage
- tst_qquickimageprovider
- tst_qquickitemparticle
| FALSE | evaluated 194 times by 90 testsEvaluated 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_checkTRUE | never evaluated | FALSE | evaluated 6 times by 3 testsEvaluated 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 | | - |
1000 | void 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_destroyingTRUE | evaluated 9097 times by 36 testsEvaluated 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
- ...
| FALSE | evaluated 20 times by 3 testsEvaluated 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->nextUnreferencedTRUE | evaluated 8458 times by 14 testsEvaluated 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
| FALSE | evaluated 659 times by 37 testsEvaluated 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_lastUnreferencedPixmapTRUE | evaluated 659 times by 37 testsEvaluated 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
- ...
| FALSE | evaluated 8458 times by 14 testsEvaluated 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 == -1TRUE | evaluated 78 times by 36 testsEvaluated 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
- ...
| FALSE | evaluated 9039 times by 24 testsEvaluated 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_unreferencedPixmapsTRUE | evaluated 74 times by 36 testsEvaluated 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
- ...
| FALSE | evaluated 4 times by 1 test |
| 4-9039 |
1023 | && !m_destroyingTRUE | evaluated 74 times by 36 testsEvaluated 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
- ...
| FALSE | never evaluated |
&& !QCoreApplication::closingDown()TRUE | evaluated 74 times by 36 testsEvaluated 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
- ...
| FALSE | never 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 | | - |
1028 | void 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->nextUnreferencedTRUE | evaluated 22 times by 3 testsEvaluated by:- tst_qquickimage
- tst_qquickpixmapcache
- tst_qquicktext
| FALSE | evaluated 215 times by 10 testsEvaluated 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 == dataTRUE | evaluated 215 times by 10 testsEvaluated by:- tst_qquickage
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickgroupgoal
- tst_qquickimage
- tst_qquickparticlegroup
- tst_qquickpixmapcache
- tst_qquickshadereffect
- tst_qquicktext
- tst_qquicktrailemitter
| FALSE | evaluated 22 times by 3 testsEvaluated 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 | | - |
1047 | void QQuickPixmapStore::shrinkCache(int remove) | - |
1048 | { | - |
1049 | while ((remove > 0TRUE | evaluated 778 times by 37 testsEvaluated 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
- ...
| FALSE | evaluated 22819 times by 91 testsEvaluated 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_limitTRUE | evaluated 8112 times by 5 testsEvaluated by:- tst_examples
- tst_qquickanimatedsprite
- tst_qquickpixmapcache
- tst_qquickspritesequence
- tst_scenegraph
| FALSE | evaluated 14707 times by 91 testsEvaluated 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_lastUnreferencedPixmapTRUE | evaluated 8880 times by 37 testsEvaluated 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
- ...
| FALSE | evaluated 10 times by 5 testsEvaluated 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_destroyingTRUE | evaluated 8786 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 94 times by 5 testsEvaluated 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 | | - |
1067 | void QQuickPixmapStore::timerEvent(QTimerEvent *) | - |
1068 | { | - |
1069 | int removalCost = m_unreferencedCost / 4; | - |
1070 | | - |
1071 | shrinkCache(removalCost); | - |
1072 | | - |
1073 | if (m_unreferencedPixmaps == nullptrTRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_scenegraph
| FALSE | never 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 | | - |
1079 | void 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 | | - |
1084 | void 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 | | - |
1089 | QQuickPixmapReply::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 == -1TRUE | evaluated 20 times by 10 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 2356 times by 8 testsEvaluated 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 | | - |
1098 | QQuickPixmapReply::~QQuickPixmapReply() | - |
1099 | { | - |
1100 | | - |
1101 | | - |
1102 | } | - |
1103 | | - |
1104 | bool QQuickPixmapReply::event(QEvent *event) | - |
1105 | { | - |
1106 | if (event->type() == QEvent::UserTRUE | evaluated 132 times by 8 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 326 times by 8 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
|
) { | 132-326 |
1107 | | - |
1108 | if (dataTRUE | evaluated 132 times by 8 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | never evaluated |
) { | 0-132 |
1109 | Event *de = static_cast<Event *>(event); | - |
1110 | data->pixmapStatus = (TRUE | evaluated 114 times by 7 testsEvaluated by:- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 18 times by 6 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktextedit
|
de->error == NoError)TRUE | evaluated 114 times by 7 testsEvaluated by:- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 18 times by 6 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktextedit
|
? QQuickPixmap::Ready : QQuickPixmap::Error; | 18-114 |
1111 | if (data->pixmapStatus == QQuickPixmap::ReadyTRUE | evaluated 114 times by 7 testsEvaluated by:- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
| FALSE | evaluated 18 times by 6 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 114 times by 7 testsEvaluated 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)0executed 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 |
1116 | | 114 |
1117 | | 114 |
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)TRUE | never evaluated | FALSE | evaluated 18 times by 6 testsEvaluated 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)TRUE | never evaluated | FALSE | never 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 | returnexecuted 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 | returnexecuted 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 | | - |
1138 | int QQuickPixmapData::cost() const | - |
1139 | { | - |
1140 | if (textureFactoryTRUE | evaluated 26906 times by 36 testsEvaluated 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
- ...
| FALSE | never evaluated |
) | 0-26906 |
1141 | returnexecuted 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 | | - |
1145 | void QQuickPixmapData::addref() | - |
1146 | { | - |
1147 | ++refCount; | - |
1148 | if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)TRUE | never evaluated | FALSE | evaluated 5571 times by 18 testsEvaluated 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 (prevUnreferencedPtrTRUE | evaluated 237 times by 10 testsEvaluated by:- tst_qquickage
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickgroupgoal
- tst_qquickimage
- tst_qquickparticlegroup
- tst_qquickpixmapcache
- tst_qquickshadereffect
- tst_qquicktext
- tst_qquicktrailemitter
| FALSE | evaluated 5334 times by 12 testsEvaluated 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 | | - |
1153 | void 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)TRUE | never evaluated | FALSE | evaluated 16879 times by 40 testsEvaluated 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 == 0TRUE | evaluated 11545 times by 40 testsEvaluated 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
- ...
| FALSE | evaluated 5334 times by 12 testsEvaluated 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 (replyTRUE | evaluated 2244 times by 7 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
| FALSE | evaluated 9301 times by 38 testsEvaluated 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 (readerTRUE | evaluated 2242 times by 7 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
| FALSE | evaluated 2 times by 1 test |
) | 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::ReadyTRUE | evaluated 9177 times by 38 testsEvaluated 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
- ...
| FALSE | evaluated 2368 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
|
) { | 2368-9177 |
1171 | if (inCacheTRUE | evaluated 9117 times by 37 testsEvaluated 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
- ...
| FALSE | evaluated 60 times by 4 testsEvaluated 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 | | - |
1182 | void QQuickPixmapData::addToCache() | - |
1183 | { | - |
1184 | if (!inCacheTRUE | evaluated 11142 times by 39 testsEvaluated 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
- ...
| FALSE | never 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)TRUE | never evaluated | FALSE | evaluated 11142 times by 39 testsEvaluated 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)0executed 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 | | - |
1193 | void QQuickPixmapData::removeFromCache() | - |
1194 | { | - |
1195 | if (inCacheTRUE | evaluated 11142 times by 39 testsEvaluated 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
- ...
| FALSE | evaluated 124 times by 7 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 11142 times by 39 testsEvaluated 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)0executed 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 | | - |
1204 | static QQuickPixmapData* createPixmapDataSync(QQuickPixmap *declarativePixmap, QQmlEngine *engine, const QUrl &url, const QSize &requestSize, const QQuickImageProviderOptions &providerOptions, bool *ok) | - |
1205 | { | - |
1206 | if (url.scheme() == QLatin1String("image")TRUE | evaluated 8064 times by 4 testsEvaluated by:- tst_qquickanimatedsprite
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_sharedimage
| FALSE | evaluated 3078 times by 37 testsEvaluated 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 (providerTRUE | evaluated 8054 times by 4 testsEvaluated by:- tst_qquickanimatedsprite
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_sharedimage
| FALSE | evaluated 10 times by 1 test |
) | 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 | caseexecuted 10 times by 1 test: case QQuickImageProvider::Invalid: QQuickImageProvider::Invalid:executed 10 times by 1 test: case QQuickImageProvider::Invalid: | 10 |
1217 | returnexecuted 10 times by 1 test: return new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions, QQuickPixmap::tr("Invalid image provider: %1").arg(url.toString())); 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())); | 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())); | 10 |
1219 | case never executed: case QQuickImageProvider::Texture: QQuickImageProvider::Texture:never executed: case QQuickImageProvider::Texture: | 0 |
1220 | { | - |
1221 | QQuickTextureFactory *texture = providerV2TRUE | never evaluated | FALSE | never evaluated |
? providerV2->requestTexture(imageId(url), &readSize, requestSize, providerOptions) | 0 |
1222 | : provider->requestTexture(imageId(url), &readSize, requestSize); | - |
1223 | if (textureTRUE | never evaluated | FALSE | never 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 | caseexecuted 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 = providerV2TRUE | evaluated 6 times by 1 test | FALSE | evaluated 18 times by 1 test |
? providerV2->requestImage(imageId(url), &readSize, requestSize, providerOptions) | 6-18 |
1233 | : provider->requestImage(imageId(url), &readSize, requestSize); | - |
1234 | if (!image.isNull()TRUE | evaluated 22 times by 2 testsEvaluated by:- tst_qquickimageprovider
- tst_sharedimage
| FALSE | evaluated 2 times by 1 test |
) { | 2-22 |
1235 | *ok = true; | - |
1236 | returnexecuted 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; | 2 |
1239 | } | - |
1240 | caseexecuted 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 = providerV2TRUE | never evaluated | FALSE | evaluated 8030 times by 3 testsEvaluated 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()TRUE | evaluated 8028 times by 3 testsEvaluated by:- tst_qquickanimatedsprite
- tst_qquickimageprovider
- tst_qquickpixmapcache
| FALSE | evaluated 2 times by 1 test |
) { | 2-8028 |
1245 | *ok = true; | - |
1246 | returnexecuted 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; | 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 | returnexecuted 4 times by 1 test: return new QQuickPixmapData(declarativePixmap, url, requestSize, providerOptions, QQuickPixmap::tr("Failed to get image from provider: %1").arg(url.toString())); 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())); | 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())); | 4 |
1260 | } | - |
1261 | | - |
1262 | QString localFile = QQmlFile::urlToLocalFileOrQrc(url); | - |
1263 | if (localFile.isEmpty()TRUE | evaluated 2282 times by 8 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
| FALSE | evaluated 796 times by 35 testsEvaluated 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 | returnexecuted 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)TRUE | evaluated 704 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 92 times by 6 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
|
) { | 92-704 |
1271 | QSGTextureReader texReader(&f, localFile); | - |
1272 | if (backendSupport()->hasOpenGLTRUE | evaluated 704 times by 34 testsEvaluated 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
- ...
| FALSE | never evaluated |
&& texReader.isTexture()TRUE | evaluated 6 times by 1 test | FALSE | evaluated 698 times by 34 testsEvaluated 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 (factoryTRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
) { | 0-6 |
1275 | *ok = true; | - |
1276 | returnexecuted 6 times by 1 test: return new QQuickPixmapData(declarativePixmap, url, factory, factory->textureSize(), requestSize, providerOptions, QQuickImageProviderOptions::UsePluginDefaultTransform); 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); | 6 |
1277 | } else { | - |
1278 | errorString = QQuickPixmap::tr("Error decoding: %1").arg(url.toString()); | - |
1279 | if (f.fileName() != localFileTRUE | never evaluated | FALSE | never 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)TRUE | evaluated 698 times by 34 testsEvaluated 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
- ...
| FALSE | never evaluated |
) { | 0-698 |
1286 | *ok = true; | - |
1287 | returnexecuted 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() != localFileTRUE | never evaluated | FALSE | never 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 | returnexecuted 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 | | - |
1299 | struct QQuickPixmapNull { | - |
1300 | QUrl url; | - |
1301 | QSize size; | - |
1302 | }; | - |
1303 | namespace { 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::InitializedTRUE | never evaluated | FALSE | never 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; returnnever 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 | | - |
1305 | QQuickPixmap::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 | | - |
1310 | QQuickPixmap::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 | | - |
1316 | QQuickPixmap::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 | | - |
1322 | QQuickPixmap::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 | | - |
1328 | QQuickPixmap::~QQuickPixmap() | - |
1329 | { | - |
1330 | if (dTRUE | evaluated 14746 times by 40 testsEvaluated 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
- ...
| FALSE | evaluated 868 times by 12 testsEvaluated 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 | | - |
1337 | bool QQuickPixmap::isNull() const | - |
1338 | { | - |
1339 | returnexecuted 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 | | - |
1342 | bool QQuickPixmap::isReady() const | - |
1343 | { | - |
1344 | returnexecuted 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 | | - |
1347 | bool QQuickPixmap::isError() const | - |
1348 | { | - |
1349 | returnexecuted 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 | | - |
1352 | bool QQuickPixmap::isLoading() const | - |
1353 | { | - |
1354 | returnexecuted 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 | | - |
1357 | QString QQuickPixmap::error() const | - |
1358 | { | - |
1359 | if (dTRUE | evaluated 124 times by 7 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
| FALSE | never evaluated |
) | 0-124 |
1360 | returnexecuted 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 | | - |
1365 | QQuickPixmap::Status QQuickPixmap::status() const | - |
1366 | { | - |
1367 | if (dTRUE | evaluated 11935 times by 38 testsEvaluated 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
- ...
| FALSE | evaluated 240 times by 21 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
1373 | const QUrl &QQuickPixmap::url() const | - |
1374 | { | - |
1375 | if (dTRUE | never evaluated | FALSE | never 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 | | - |
1381 | const QSize &QQuickPixmap::implicitSize() const | - |
1382 | { | - |
1383 | if (dTRUE | evaluated 186 times by 3 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquicktext
| FALSE | never evaluated |
) | 0-186 |
1384 | returnexecuted 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 | | - |
1389 | const QSize &QQuickPixmap::requestSize() const | - |
1390 | { | - |
1391 | if (dTRUE | never evaluated | FALSE | never 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 | | - |
1397 | QQuickImageProviderOptions::AutoTransform QQuickPixmap::autoTransform() const | - |
1398 | { | - |
1399 | if (dTRUE | evaluated 5314 times by 10 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickcustomparticle
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitemparticle
- tst_qquickshadereffect
- tst_qquickstates
- tst_scenegraph
- tst_sharedimage
| FALSE | evaluated 100 times by 3 testsEvaluated by:- tst_examples
- tst_qquickimage
- tst_qquickimageprovider
|
) | 100-5314 |
1400 | returnexecuted 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 | returnexecuted 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 | | - |
1405 | QQuickTextureFactory *QQuickPixmap::textureFactory() const | - |
1406 | { | - |
1407 | if (dTRUE | evaluated 5197 times by 8 testsEvaluated by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickcustomparticle
- tst_qquickimage
- tst_qquickitemparticle
- tst_qquickshadereffect
- tst_scenegraph
| FALSE | evaluated 76 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimage
|
) | 76-5197 |
1408 | returnexecuted 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 | returnexecuted 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 | | - |
1413 | QImage QQuickPixmap::image() const | - |
1414 | { | - |
1415 | if (dTRUE | evaluated 391 times by 28 testsEvaluated 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
- ...
| FALSE | never evaluated |
&& d->textureFactoryTRUE | evaluated 333 times by 27 testsEvaluated 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
- ...
| FALSE | evaluated 58 times by 3 testsEvaluated by:- tst_qquicktext
- tst_qquicktextedit
- tst_sharedimage
|
) | 0-391 |
1416 | returnexecuted 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 | returnexecuted 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 | | - |
1420 | void QQuickPixmap::setImage(const QImage &p) | - |
1421 | { | - |
1422 | clear(); | - |
1423 | | - |
1424 | if (!p.isNull()TRUE | evaluated 12 times by 1 test | FALSE | evaluated 188 times by 2 testsEvaluated 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)); | 12 |
1426 | }executed 200 times by 2 tests: end of block Executed by:- tst_examples
- tst_qquickanimatedimage
| 200 |
1427 | | - |
1428 | void QQuickPixmap::setPixmap(const QQuickPixmap &other) | - |
1429 | { | - |
1430 | clear(); | - |
1431 | | - |
1432 | if (other.dTRUE | evaluated 404 times by 1 test | FALSE | never 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 | 404 |
1437 | }executed 404 times by 1 test: end of block | 404 |
1438 | | - |
1439 | int QQuickPixmap::width() const | - |
1440 | { | - |
1441 | if (dTRUE | evaluated 27190 times by 12 testsEvaluated 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
| FALSE | evaluated 644 times by 8 testsEvaluated by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquickshadereffect
- tst_sharedimage
|
&& d->textureFactoryTRUE | evaluated 27138 times by 12 testsEvaluated 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
| FALSE | evaluated 52 times by 3 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickpixmapcache
|
) | 52-27190 |
1442 | returnexecuted 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 | returnexecuted 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 | | - |
1447 | int QQuickPixmap::height() const | - |
1448 | { | - |
1449 | if (dTRUE | evaluated 27134 times by 11 testsEvaluated by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickcustomparticle
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitemparticle
- tst_qquickshadereffect
- tst_qquickstates
- tst_scenegraph
- tst_sharedimage
| FALSE | evaluated 560 times by 6 testsEvaluated by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickshadereffect
|
&& d->textureFactoryTRUE | evaluated 27102 times by 11 testsEvaluated by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickcustomparticle
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitemparticle
- tst_qquickshadereffect
- tst_qquickstates
- tst_scenegraph
- tst_sharedimage
| FALSE | evaluated 32 times by 2 testsEvaluated by:- tst_examples
- tst_qquickborderimage
|
) | 32-27134 |
1450 | returnexecuted 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 | returnexecuted 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 | | - |
1455 | QRect QQuickPixmap::rect() const | - |
1456 | { | - |
1457 | if (dTRUE | evaluated 5055 times by 8 testsEvaluated by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickcustomparticle
- tst_qquickimage
- tst_qquickitemparticle
- tst_qquickshadereffect
- tst_scenegraph
| FALSE | never evaluated |
&& d->textureFactoryTRUE | evaluated 5055 times by 8 testsEvaluated by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickcustomparticle
- tst_qquickimage
- tst_qquickitemparticle
- tst_qquickshadereffect
- tst_scenegraph
| FALSE | never evaluated |
) | 0-5055 |
1458 | returnexecuted 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 | | - |
1463 | void 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 | | - |
1468 | void 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 | | - |
1473 | void 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 | | - |
1478 | void 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 | | - |
1483 | void QQuickPixmap::load(QQmlEngine *engine, const QUrl &url, const QSize &requestSize, QQuickPixmap::Options options, const QQuickImageProviderOptions &providerOptions) | - |
1484 | { | - |
1485 | if (dTRUE | never evaluated | FALSE | evaluated 16403 times by 39 testsEvaluated 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() == itemGrabberSchemeTRUE | never evaluated | FALSE | evaluated 16403 times by 39 testsEvaluated 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 != dummyTRUE | never evaluated | FALSE | never 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::CacheTRUE | evaluated 16355 times by 38 testsEvaluated 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
- ...
| FALSE | evaluated 48 times by 3 testsEvaluated 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()TRUE | evaluated 11236 times by 38 testsEvaluated 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
- ...
| FALSE | evaluated 5167 times by 18 testsEvaluated 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")TRUE | evaluated 8130 times by 5 testsEvaluated by:- tst_qquickanimatedsprite
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_sharedimage
| FALSE | evaluated 3106 times by 37 testsEvaluated 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)))TRUE | evaluated 8118 times by 5 testsEvaluated by:- tst_qquickanimatedsprite
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_sharedimage
| FALSE | evaluated 12 times by 1 test |
) { | 12-8118 |
1511 | const bool threadedPixmaps = QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::ThreadedPixmaps); | - |
1512 | if (!threadedPixmapsTRUE | never evaluated | FALSE | evaluated 8118 times by 5 testsEvaluated by:- tst_qquickanimatedsprite
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_sharedimage
|
&& provider->imageType() == QQuickImageProvider::PixmapTRUE | never evaluated | FALSE | never evaluated |
) { | 0-8118 |
1513 | | - |
1514 | options &= ~QQuickPixmap::Asynchronous; | - |
1515 | } never executed: end of block else if (provider->flags() & QQuickImageProvider::ForceAsynchronousImageLoadingTRUE | evaluated 32 times by 1 test | FALSE | evaluated 8086 times by 5 testsEvaluated 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 | 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)TRUE | evaluated 11142 times by 38 testsEvaluated 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
- ...
| FALSE | evaluated 94 times by 4 testsEvaluated by:- tst_examples
- tst_qquickimage
- tst_qquickimageprovider
- tst_sharedimage
|
) { | 94-11142 |
1522 | bool ok = false; | - |
1523 | if (QQuickProfiler::featuresEnabled & (1 << QQuickProfiler::ProfilePixmapCache)TRUE | never evaluated | FALSE | evaluated 11142 times by 38 testsEvaluated 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 (okTRUE | evaluated 8754 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 2388 times by 9 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 8754 times by 35 testsEvaluated 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::CacheTRUE | evaluated 8710 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 44 times by 3 testsEvaluated 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 (dTRUE | evaluated 106 times by 7 testsEvaluated by:- tst_examples
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
| FALSE | evaluated 2282 times by 8 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 106 times by 7 testsEvaluated 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 (!engineTRUE | never evaluated | FALSE | evaluated 2376 times by 10 testsEvaluated 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::CacheTRUE | evaluated 2372 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
| FALSE | evaluated 4 times by 1 test |
) | 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 | | - |
1555 | void QQuickPixmap::clear() | - |
1556 | { | - |
1557 | if (dTRUE | evaluated 528 times by 2 testsEvaluated by:- tst_qquickanimatedimage
- tst_qquickpixmapcache
| FALSE | evaluated 278 times by 2 testsEvaluated 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 | | - |
1564 | void QQuickPixmap::clear(QObject *obj) | - |
1565 | { | - |
1566 | if (dTRUE | evaluated 327 times by 11 testsEvaluated by:- tst_examples
- tst_qquickage
- tst_qquickanimatedsprite
- tst_qquickborderimage
- tst_qquickgroupgoal
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickparticlegroup
- tst_qquickpixmapcache
- tst_qquickshadereffect
- tst_qquicktrailemitter
| FALSE | evaluated 5672 times by 35 testsEvaluated 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->replyTRUE | evaluated 2 times by 1 test | FALSE | evaluated 325 times by 10 testsEvaluated 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); | 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 | | - |
1575 | bool QQuickPixmap::isCached(const QUrl &url, const QSize &requestSize, const QQuickImageProviderOptions &options) | - |
1576 | { | - |
1577 | QQuickPixmapKey key = { &url, &requestSize, options }; | - |
1578 | QQuickPixmapStore *store = pixmapStore(); | - |
1579 | | - |
1580 | returnexecuted 220 times by 1 test: return store->m_cache.contains(key); store->m_cache.contains(key);executed 220 times by 1 test: return store->m_cache.contains(key); | 220 |
1581 | } | - |
1582 | | - |
1583 | bool QQuickPixmap::connectFinished(QObject *object, const char *method) | - |
1584 | { | - |
1585 | if (!dTRUE | never evaluated | FALSE | evaluated 34 times by 4 testsEvaluated by:- tst_examples
- tst_qquickpixmapcache
- tst_qquicktext
- tst_qquicktextedit
|
|| !d->replyTRUE | never evaluated | FALSE | evaluated 34 times by 4 testsEvaluated 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 | returnexecuted 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 | | - |
1593 | bool QQuickPixmap::connectFinished(QObject *object, int method) | - |
1594 | { | - |
1595 | if (!dTRUE | never evaluated | FALSE | evaluated 152 times by 7 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_sharedimage
|
|| !d->replyTRUE | never evaluated | FALSE | evaluated 152 times by 7 testsEvaluated 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 | returnexecuted 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 | | - |
1603 | bool QQuickPixmap::connectDownloadProgress(QObject *object, const char *method) | - |
1604 | { | - |
1605 | if (!dTRUE | never evaluated | FALSE | never evaluated |
|| !d->replyTRUE | never evaluated | FALSE | never 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 | | - |
1613 | bool QQuickPixmap::connectDownloadProgress(QObject *object, int method) | - |
1614 | { | - |
1615 | if (!dTRUE | never evaluated | FALSE | evaluated 152 times by 7 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qquickanchors
- tst_qquickborderimage
- tst_qquickimage
- tst_qquickimageprovider
- tst_sharedimage
|
|| !d->replyTRUE | never evaluated | FALSE | evaluated 152 times by 7 testsEvaluated 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 | returnexecuted 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 | | - |
| | |