| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickv4particledata.cpp |
| Source code | Switch to Preprocessed file |
| Line | Source | Count | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | /**************************************************************************** | - | ||||||||||||||||||||||||||||||||||||
| 2 | ** | - | ||||||||||||||||||||||||||||||||||||
| 3 | ** Copyright (C) 2016 The Qt Company Ltd. | - | ||||||||||||||||||||||||||||||||||||
| 4 | ** Contact: https://www.qt.io/licensing/ | - | ||||||||||||||||||||||||||||||||||||
| 5 | ** | - | ||||||||||||||||||||||||||||||||||||
| 6 | ** This file is part of the QtQuick module of the Qt Toolkit. | - | ||||||||||||||||||||||||||||||||||||
| 7 | ** | - | ||||||||||||||||||||||||||||||||||||
| 8 | ** $QT_BEGIN_LICENSE:LGPL$ | - | ||||||||||||||||||||||||||||||||||||
| 9 | ** Commercial License Usage | - | ||||||||||||||||||||||||||||||||||||
| 10 | ** Licensees holding valid commercial Qt licenses may use this file in | - | ||||||||||||||||||||||||||||||||||||
| 11 | ** accordance with the commercial license agreement provided with the | - | ||||||||||||||||||||||||||||||||||||
| 12 | ** Software or, alternatively, in accordance with the terms contained in | - | ||||||||||||||||||||||||||||||||||||
| 13 | ** a written agreement between you and The Qt Company. For licensing terms | - | ||||||||||||||||||||||||||||||||||||
| 14 | ** and conditions see https://www.qt.io/terms-conditions. For further | - | ||||||||||||||||||||||||||||||||||||
| 15 | ** information use the contact form at https://www.qt.io/contact-us. | - | ||||||||||||||||||||||||||||||||||||
| 16 | ** | - | ||||||||||||||||||||||||||||||||||||
| 17 | ** GNU Lesser General Public License Usage | - | ||||||||||||||||||||||||||||||||||||
| 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser | - | ||||||||||||||||||||||||||||||||||||
| 19 | ** General Public License version 3 as published by the Free Software | - | ||||||||||||||||||||||||||||||||||||
| 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the | - | ||||||||||||||||||||||||||||||||||||
| 21 | ** packaging of this file. Please review the following information to | - | ||||||||||||||||||||||||||||||||||||
| 22 | ** ensure the GNU Lesser General Public License version 3 requirements | - | ||||||||||||||||||||||||||||||||||||
| 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. | - | ||||||||||||||||||||||||||||||||||||
| 24 | ** | - | ||||||||||||||||||||||||||||||||||||
| 25 | ** GNU General Public License Usage | - | ||||||||||||||||||||||||||||||||||||
| 26 | ** Alternatively, this file may be used under the terms of the GNU | - | ||||||||||||||||||||||||||||||||||||
| 27 | ** General Public License version 2.0 or (at your option) the GNU General | - | ||||||||||||||||||||||||||||||||||||
| 28 | ** Public license version 3 or any later version approved by the KDE Free | - | ||||||||||||||||||||||||||||||||||||
| 29 | ** Qt Foundation. The licenses are as published by the Free Software | - | ||||||||||||||||||||||||||||||||||||
| 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 | - | ||||||||||||||||||||||||||||||||||||
| 31 | ** included in the packaging of this file. Please review the following | - | ||||||||||||||||||||||||||||||||||||
| 32 | ** information to ensure the GNU General Public License requirements will | - | ||||||||||||||||||||||||||||||||||||
| 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and | - | ||||||||||||||||||||||||||||||||||||
| 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. | - | ||||||||||||||||||||||||||||||||||||
| 35 | ** | - | ||||||||||||||||||||||||||||||||||||
| 36 | ** $QT_END_LICENSE$ | - | ||||||||||||||||||||||||||||||||||||
| 37 | ** | - | ||||||||||||||||||||||||||||||||||||
| 38 | ****************************************************************************/ | - | ||||||||||||||||||||||||||||||||||||
| 39 | - | |||||||||||||||||||||||||||||||||||||
| 40 | #include <math.h> | - | ||||||||||||||||||||||||||||||||||||
| 41 | #include "qquickv4particledata_p.h" | - | ||||||||||||||||||||||||||||||||||||
| 42 | #include "qquickparticlesystem_p.h"//for QQuickParticleData | - | ||||||||||||||||||||||||||||||||||||
| 43 | #include <QDebug> | - | ||||||||||||||||||||||||||||||||||||
| 44 | #include <private/qv4engine_p.h> | - | ||||||||||||||||||||||||||||||||||||
| 45 | #include <private/qv4functionobject_p.h> | - | ||||||||||||||||||||||||||||||||||||
| 46 | #include <QtCore/private/qnumeric_p.h> | - | ||||||||||||||||||||||||||||||||||||
| 47 | - | |||||||||||||||||||||||||||||||||||||
| 48 | QT_BEGIN_NAMESPACE | - | ||||||||||||||||||||||||||||||||||||
| 49 | - | |||||||||||||||||||||||||||||||||||||
| 50 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 51 | \qmltype Particle | - | ||||||||||||||||||||||||||||||||||||
| 52 | \inqmlmodule QtQuick.Particles | - | ||||||||||||||||||||||||||||||||||||
| 53 | \brief Represents particles manipulated by emitters and affectors. | - | ||||||||||||||||||||||||||||||||||||
| 54 | \ingroup qtquick-particles | - | ||||||||||||||||||||||||||||||||||||
| 55 | - | |||||||||||||||||||||||||||||||||||||
| 56 | Particle elements are always managed internally by the ParticleSystem and cannot be created in QML. | - | ||||||||||||||||||||||||||||||||||||
| 57 | However, sometimes they are exposed via signals so as to allow arbitrary changes to the particle state | - | ||||||||||||||||||||||||||||||||||||
| 58 | */ | - | ||||||||||||||||||||||||||||||||||||
| 59 | - | |||||||||||||||||||||||||||||||||||||
| 60 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 61 | \qmlproperty real QtQuick.Particles::Particle::initialX | - | ||||||||||||||||||||||||||||||||||||
| 62 | The x coordinate of the particle at the beginning of its lifetime. | - | ||||||||||||||||||||||||||||||||||||
| 63 | - | |||||||||||||||||||||||||||||||||||||
| 64 | The method of simulation prefers to have the initial values changed, rather | - | ||||||||||||||||||||||||||||||||||||
| 65 | than determining and changing the value at a given time. Change initial | - | ||||||||||||||||||||||||||||||||||||
| 66 | values in CustomEmitters instead of the current values. | - | ||||||||||||||||||||||||||||||||||||
| 67 | */ | - | ||||||||||||||||||||||||||||||||||||
| 68 | - | |||||||||||||||||||||||||||||||||||||
| 69 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 70 | \qmlproperty real QtQuick.Particles::Particle::initialVX | - | ||||||||||||||||||||||||||||||||||||
| 71 | The x velocity of the particle at the beginning of its lifetime. | - | ||||||||||||||||||||||||||||||||||||
| 72 | - | |||||||||||||||||||||||||||||||||||||
| 73 | The method of simulation prefers to have the initial values changed, rather | - | ||||||||||||||||||||||||||||||||||||
| 74 | than determining and changing the value at a given time. Change initial | - | ||||||||||||||||||||||||||||||||||||
| 75 | values in CustomEmitters instead of the current values. | - | ||||||||||||||||||||||||||||||||||||
| 76 | */ | - | ||||||||||||||||||||||||||||||||||||
| 77 | - | |||||||||||||||||||||||||||||||||||||
| 78 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 79 | \qmlproperty real QtQuick.Particles::Particle::initialAX | - | ||||||||||||||||||||||||||||||||||||
| 80 | The x acceleration of the particle at the beginning of its lifetime. | - | ||||||||||||||||||||||||||||||||||||
| 81 | - | |||||||||||||||||||||||||||||||||||||
| 82 | The method of simulation prefers to have the initial values changed, rather | - | ||||||||||||||||||||||||||||||||||||
| 83 | than determining and changing the value at a given time. Change initial | - | ||||||||||||||||||||||||||||||||||||
| 84 | values in CustomEmitters instead of the current values. | - | ||||||||||||||||||||||||||||||||||||
| 85 | */ | - | ||||||||||||||||||||||||||||||||||||
| 86 | - | |||||||||||||||||||||||||||||||||||||
| 87 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 88 | \qmlproperty real QtQuick.Particles::Particle::initialY | - | ||||||||||||||||||||||||||||||||||||
| 89 | The y coordinate of the particle at the beginning of its lifetime. | - | ||||||||||||||||||||||||||||||||||||
| 90 | - | |||||||||||||||||||||||||||||||||||||
| 91 | The method of simulation prefers to have the initial values changed, rather | - | ||||||||||||||||||||||||||||||||||||
| 92 | than determining and changing the value at a given time. Change initial | - | ||||||||||||||||||||||||||||||||||||
| 93 | values in CustomEmitters instead of the current values. | - | ||||||||||||||||||||||||||||||||||||
| 94 | */ | - | ||||||||||||||||||||||||||||||||||||
| 95 | - | |||||||||||||||||||||||||||||||||||||
| 96 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 97 | \qmlproperty real QtQuick.Particles::Particle::initialVY | - | ||||||||||||||||||||||||||||||||||||
| 98 | The y velocity of the particle at the beginning of its lifetime. | - | ||||||||||||||||||||||||||||||||||||
| 99 | - | |||||||||||||||||||||||||||||||||||||
| 100 | The method of simulation prefers to have the initial values changed, rather | - | ||||||||||||||||||||||||||||||||||||
| 101 | than determining and changing the value at a given time. Change initial | - | ||||||||||||||||||||||||||||||||||||
| 102 | values in CustomEmitters instead of the current values. | - | ||||||||||||||||||||||||||||||||||||
| 103 | */ | - | ||||||||||||||||||||||||||||||||||||
| 104 | - | |||||||||||||||||||||||||||||||||||||
| 105 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 106 | \qmlproperty real QtQuick.Particles::Particle::initialAY | - | ||||||||||||||||||||||||||||||||||||
| 107 | The y acceleration of the particle at the beginning of its lifetime. | - | ||||||||||||||||||||||||||||||||||||
| 108 | - | |||||||||||||||||||||||||||||||||||||
| 109 | The method of simulation prefers to have the initial values changed, rather | - | ||||||||||||||||||||||||||||||||||||
| 110 | than determining and changing the value at a given time. Change initial | - | ||||||||||||||||||||||||||||||||||||
| 111 | values in CustomEmitters instead of the current values. | - | ||||||||||||||||||||||||||||||||||||
| 112 | */ | - | ||||||||||||||||||||||||||||||||||||
| 113 | - | |||||||||||||||||||||||||||||||||||||
| 114 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 115 | \qmlproperty real QtQuick.Particles::Particle::x | - | ||||||||||||||||||||||||||||||||||||
| 116 | The current x coordinate of the particle. | - | ||||||||||||||||||||||||||||||||||||
| 117 | */ | - | ||||||||||||||||||||||||||||||||||||
| 118 | - | |||||||||||||||||||||||||||||||||||||
| 119 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 120 | \qmlproperty real QtQuick.Particles::Particle::vx | - | ||||||||||||||||||||||||||||||||||||
| 121 | The current x velocity of the particle. | - | ||||||||||||||||||||||||||||||||||||
| 122 | */ | - | ||||||||||||||||||||||||||||||||||||
| 123 | - | |||||||||||||||||||||||||||||||||||||
| 124 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 125 | \qmlproperty real QtQuick.Particles::Particle::ax | - | ||||||||||||||||||||||||||||||||||||
| 126 | The current x acceleration of the particle. | - | ||||||||||||||||||||||||||||||||||||
| 127 | */ | - | ||||||||||||||||||||||||||||||||||||
| 128 | - | |||||||||||||||||||||||||||||||||||||
| 129 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 130 | \qmlproperty real QtQuick.Particles::Particle::y | - | ||||||||||||||||||||||||||||||||||||
| 131 | The current y coordinate of the particle. | - | ||||||||||||||||||||||||||||||||||||
| 132 | */ | - | ||||||||||||||||||||||||||||||||||||
| 133 | - | |||||||||||||||||||||||||||||||||||||
| 134 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 135 | \qmlproperty real QtQuick.Particles::Particle::vy | - | ||||||||||||||||||||||||||||||||||||
| 136 | The current y velocity of the particle. | - | ||||||||||||||||||||||||||||||||||||
| 137 | */ | - | ||||||||||||||||||||||||||||||||||||
| 138 | - | |||||||||||||||||||||||||||||||||||||
| 139 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 140 | \qmlproperty real QtQuick.Particles::Particle::ay | - | ||||||||||||||||||||||||||||||||||||
| 141 | The current y acceleration of the particle. | - | ||||||||||||||||||||||||||||||||||||
| 142 | */ | - | ||||||||||||||||||||||||||||||||||||
| 143 | - | |||||||||||||||||||||||||||||||||||||
| 144 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 145 | \qmlproperty real QtQuick.Particles::Particle::t | - | ||||||||||||||||||||||||||||||||||||
| 146 | The time, in seconds since the beginning of the simulation, that the particle was born. | - | ||||||||||||||||||||||||||||||||||||
| 147 | */ | - | ||||||||||||||||||||||||||||||||||||
| 148 | - | |||||||||||||||||||||||||||||||||||||
| 149 | - | |||||||||||||||||||||||||||||||||||||
| 150 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 151 | \qmlproperty real QtQuick.Particles::Particle::startSize | - | ||||||||||||||||||||||||||||||||||||
| 152 | The size in pixels that the particle image is at the start | - | ||||||||||||||||||||||||||||||||||||
| 153 | of its life. | - | ||||||||||||||||||||||||||||||||||||
| 154 | */ | - | ||||||||||||||||||||||||||||||||||||
| 155 | - | |||||||||||||||||||||||||||||||||||||
| 156 | - | |||||||||||||||||||||||||||||||||||||
| 157 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 158 | \qmlproperty real QtQuick.Particles::Particle::endSize | - | ||||||||||||||||||||||||||||||||||||
| 159 | The size in pixels that the particle image is at the end | - | ||||||||||||||||||||||||||||||||||||
| 160 | of its life. If this value is less than 0, then it is | - | ||||||||||||||||||||||||||||||||||||
| 161 | disregarded and the particle will have its startSize for the | - | ||||||||||||||||||||||||||||||||||||
| 162 | entire lifetime. | - | ||||||||||||||||||||||||||||||||||||
| 163 | */ | - | ||||||||||||||||||||||||||||||||||||
| 164 | - | |||||||||||||||||||||||||||||||||||||
| 165 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 166 | \qmlproperty real QtQuick.Particles::Particle::lifeSpan | - | ||||||||||||||||||||||||||||||||||||
| 167 | The time in seconds that the particle will live for. | - | ||||||||||||||||||||||||||||||||||||
| 168 | */ | - | ||||||||||||||||||||||||||||||||||||
| 169 | - | |||||||||||||||||||||||||||||||||||||
| 170 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 171 | \qmlproperty real QtQuick.Particles::Particle::rotation | - | ||||||||||||||||||||||||||||||||||||
| 172 | Degrees clockwise that the particle image is rotated at | - | ||||||||||||||||||||||||||||||||||||
| 173 | the beginning of its life. | - | ||||||||||||||||||||||||||||||||||||
| 174 | */ | - | ||||||||||||||||||||||||||||||||||||
| 175 | - | |||||||||||||||||||||||||||||||||||||
| 176 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 177 | \qmlproperty real QtQuick.Particles::Particle::rotationVelocity | - | ||||||||||||||||||||||||||||||||||||
| 178 | Degrees clockwise per second that the particle image is rotated at while alive. | - | ||||||||||||||||||||||||||||||||||||
| 179 | */ | - | ||||||||||||||||||||||||||||||||||||
| 180 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 181 | \qmlproperty bool QtQuick.Particles::Particle::autoRotate | - | ||||||||||||||||||||||||||||||||||||
| 182 | If autoRotate is true, then the particle's rotation will be | - | ||||||||||||||||||||||||||||||||||||
| 183 | set so that it faces the direction of travel, plus any | - | ||||||||||||||||||||||||||||||||||||
| 184 | rotation from the rotation or rotationVelocity properties. | - | ||||||||||||||||||||||||||||||||||||
| 185 | */ | - | ||||||||||||||||||||||||||||||||||||
| 186 | - | |||||||||||||||||||||||||||||||||||||
| 187 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 188 | \qmlproperty bool QtQuick.Particles::Particle::update | - | ||||||||||||||||||||||||||||||||||||
| 189 | - | |||||||||||||||||||||||||||||||||||||
| 190 | Inside an Affector, the changes made to the particle will only be | - | ||||||||||||||||||||||||||||||||||||
| 191 | applied if update is set to true. | - | ||||||||||||||||||||||||||||||||||||
| 192 | */ | - | ||||||||||||||||||||||||||||||||||||
| 193 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 194 | \qmlproperty real QtQuick.Particles::Particle::xDeformationVectorX | - | ||||||||||||||||||||||||||||||||||||
| 195 | - | |||||||||||||||||||||||||||||||||||||
| 196 | The x component of the deformation vector along the X axis. ImageParticle | - | ||||||||||||||||||||||||||||||||||||
| 197 | can draw particles across non-square shapes. It will draw the texture rectangle | - | ||||||||||||||||||||||||||||||||||||
| 198 | across the parallelogram drawn with the x and y deformation vectors. | - | ||||||||||||||||||||||||||||||||||||
| 199 | */ | - | ||||||||||||||||||||||||||||||||||||
| 200 | - | |||||||||||||||||||||||||||||||||||||
| 201 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 202 | \qmlproperty real QtQuick.Particles::Particle::yDeformationVectorX | - | ||||||||||||||||||||||||||||||||||||
| 203 | - | |||||||||||||||||||||||||||||||||||||
| 204 | The y component of the deformation vector along the X axis. ImageParticle | - | ||||||||||||||||||||||||||||||||||||
| 205 | can draw particles across non-square shapes. It will draw the texture rectangle | - | ||||||||||||||||||||||||||||||||||||
| 206 | across the parallelogram drawn with the x and y deformation vectors. | - | ||||||||||||||||||||||||||||||||||||
| 207 | */ | - | ||||||||||||||||||||||||||||||||||||
| 208 | - | |||||||||||||||||||||||||||||||||||||
| 209 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 210 | \qmlproperty real QtQuick.Particles::Particle::xDeformationVectorY | - | ||||||||||||||||||||||||||||||||||||
| 211 | - | |||||||||||||||||||||||||||||||||||||
| 212 | The x component of the deformation vector along the X axis. ImageParticle | - | ||||||||||||||||||||||||||||||||||||
| 213 | can draw particles across non-square shapes. It will draw the texture rectangle | - | ||||||||||||||||||||||||||||||||||||
| 214 | across the parallelogram drawn with the x and y deformation vectors. | - | ||||||||||||||||||||||||||||||||||||
| 215 | */ | - | ||||||||||||||||||||||||||||||||||||
| 216 | - | |||||||||||||||||||||||||||||||||||||
| 217 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 218 | \qmlproperty real QtQuick.Particles::Particle::yDeformationVectorY | - | ||||||||||||||||||||||||||||||||||||
| 219 | - | |||||||||||||||||||||||||||||||||||||
| 220 | The y component of the deformation vector along the Y axis. ImageParticle | - | ||||||||||||||||||||||||||||||||||||
| 221 | can draw particles across non-square shapes. It will draw the texture rectangle | - | ||||||||||||||||||||||||||||||||||||
| 222 | across the parallelogram drawn with the x and y deformation vectors. | - | ||||||||||||||||||||||||||||||||||||
| 223 | */ | - | ||||||||||||||||||||||||||||||||||||
| 224 | - | |||||||||||||||||||||||||||||||||||||
| 225 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 226 | \qmlproperty real QtQuick.Particles::Particle::red | - | ||||||||||||||||||||||||||||||||||||
| 227 | - | |||||||||||||||||||||||||||||||||||||
| 228 | ImageParticle can draw colorized particles. When it does so, red is used | - | ||||||||||||||||||||||||||||||||||||
| 229 | as the red channel of the color applied to the source image. | - | ||||||||||||||||||||||||||||||||||||
| 230 | - | |||||||||||||||||||||||||||||||||||||
| 231 | Values are from 0.0 to 1.0. | - | ||||||||||||||||||||||||||||||||||||
| 232 | */ | - | ||||||||||||||||||||||||||||||||||||
| 233 | - | |||||||||||||||||||||||||||||||||||||
| 234 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 235 | \qmlproperty real QtQuick.Particles::Particle::green | - | ||||||||||||||||||||||||||||||||||||
| 236 | - | |||||||||||||||||||||||||||||||||||||
| 237 | ImageParticle can draw colorized particles. When it does so, green is used | - | ||||||||||||||||||||||||||||||||||||
| 238 | as the green channel of the color applied to the source image. | - | ||||||||||||||||||||||||||||||||||||
| 239 | - | |||||||||||||||||||||||||||||||||||||
| 240 | Values are from 0.0 to 1.0. | - | ||||||||||||||||||||||||||||||||||||
| 241 | */ | - | ||||||||||||||||||||||||||||||||||||
| 242 | - | |||||||||||||||||||||||||||||||||||||
| 243 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 244 | \qmlproperty real QtQuick.Particles::Particle::blue | - | ||||||||||||||||||||||||||||||||||||
| 245 | - | |||||||||||||||||||||||||||||||||||||
| 246 | ImageParticle can draw colorized particles. When it does so, blue is used | - | ||||||||||||||||||||||||||||||||||||
| 247 | as the blue channel of the color applied to the source image. | - | ||||||||||||||||||||||||||||||||||||
| 248 | - | |||||||||||||||||||||||||||||||||||||
| 249 | Values are from 0.0 to 1.0. | - | ||||||||||||||||||||||||||||||||||||
| 250 | */ | - | ||||||||||||||||||||||||||||||||||||
| 251 | - | |||||||||||||||||||||||||||||||||||||
| 252 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 253 | \qmlproperty real QtQuick.Particles::Particle::alpha | - | ||||||||||||||||||||||||||||||||||||
| 254 | - | |||||||||||||||||||||||||||||||||||||
| 255 | ImageParticle can draw colorized particles. When it does so, alpha is used | - | ||||||||||||||||||||||||||||||||||||
| 256 | as the alpha channel of the color applied to the source image. | - | ||||||||||||||||||||||||||||||||||||
| 257 | - | |||||||||||||||||||||||||||||||||||||
| 258 | Values are from 0.0 to 1.0. | - | ||||||||||||||||||||||||||||||||||||
| 259 | */ | - | ||||||||||||||||||||||||||||||||||||
| 260 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 261 | \qmlproperty real QtQuick.Particles::Particle::lifeLeft | - | ||||||||||||||||||||||||||||||||||||
| 262 | The time in seconds that the particle has left to live at | - | ||||||||||||||||||||||||||||||||||||
| 263 | the current point in time. | - | ||||||||||||||||||||||||||||||||||||
| 264 | */ | - | ||||||||||||||||||||||||||||||||||||
| 265 | /*! | - | ||||||||||||||||||||||||||||||||||||
| 266 | \qmlproperty real QtQuick.Particles::Particle::currentSize | - | ||||||||||||||||||||||||||||||||||||
| 267 | The currentSize of the particle, interpolating between startSize and endSize based on the currentTime. | - | ||||||||||||||||||||||||||||||||||||
| 268 | */ | - | ||||||||||||||||||||||||||||||||||||
| 269 | - | |||||||||||||||||||||||||||||||||||||
| 270 | namespace QV4 { | - | ||||||||||||||||||||||||||||||||||||
| 271 | namespace Heap { | - | ||||||||||||||||||||||||||||||||||||
| 272 | struct QV4ParticleData : QV4::Object::Data { | - | ||||||||||||||||||||||||||||||||||||
| 273 | void init(QQuickParticleData *datum, QQuickParticleSystem* particleSystem) | - | ||||||||||||||||||||||||||||||||||||
| 274 | { | - | ||||||||||||||||||||||||||||||||||||
| 275 | Object::init(); | - | ||||||||||||||||||||||||||||||||||||
| 276 | this->datum = datum; | - | ||||||||||||||||||||||||||||||||||||
| 277 | this->particleSystem = particleSystem; | - | ||||||||||||||||||||||||||||||||||||
| 278 | } executed 998 times by 1 test: end of blockExecuted by:
| 998 | ||||||||||||||||||||||||||||||||||||
| 279 | QQuickParticleData* datum;//TODO: Guard needed? | - | ||||||||||||||||||||||||||||||||||||
| 280 | QQuickParticleSystem* particleSystem; | - | ||||||||||||||||||||||||||||||||||||
| 281 | }; | - | ||||||||||||||||||||||||||||||||||||
| 282 | } | - | ||||||||||||||||||||||||||||||||||||
| 283 | } | - | ||||||||||||||||||||||||||||||||||||
| 284 | - | |||||||||||||||||||||||||||||||||||||
| 285 | //### Particle data handles are not locked to within certain scopes like QQuickContext2D, but there's no way to reload either... | - | ||||||||||||||||||||||||||||||||||||
| 286 | struct QV4ParticleData : public QV4::Object | - | ||||||||||||||||||||||||||||||||||||
| 287 | { | - | ||||||||||||||||||||||||||||||||||||
| 288 | V4_OBJECT2(QV4ParticleData, QV4::Object) executed 17248 times by 1 test: end of blockExecuted by:
never executed: end of blockexecuted 20242 times by 1 test: return &static_vtbl;Executed by:
executed 36492 times by 1 test: return static_cast<QV4::Heap::QV4ParticleData *>(m());Executed by:
executed 35494 times by 1 test: return dptr;Executed by:
| 0-36492 | ||||||||||||||||||||||||||||||||||||
| 289 | }; | - | ||||||||||||||||||||||||||||||||||||
| 290 | - | |||||||||||||||||||||||||||||||||||||
| 291 | DEFINE_OBJECT_VTABLE(QV4ParticleData); | - | ||||||||||||||||||||||||||||||||||||
| 292 | - | |||||||||||||||||||||||||||||||||||||
| 293 | class QV4ParticleDataDeletable : public QV8Engine::Deletable | - | ||||||||||||||||||||||||||||||||||||
| 294 | { | - | ||||||||||||||||||||||||||||||||||||
| 295 | public: | - | ||||||||||||||||||||||||||||||||||||
| 296 | QV4ParticleDataDeletable(QV4::ExecutionEngine *engine); | - | ||||||||||||||||||||||||||||||||||||
| 297 | ~QV4ParticleDataDeletable() override; | - | ||||||||||||||||||||||||||||||||||||
| 298 | - | |||||||||||||||||||||||||||||||||||||
| 299 | QV4::PersistentValue proto; | - | ||||||||||||||||||||||||||||||||||||
| 300 | }; | - | ||||||||||||||||||||||||||||||||||||
| 301 | - | |||||||||||||||||||||||||||||||||||||
| 302 | static QV4::ReturnedValue particleData_discard(const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *, int) | - | ||||||||||||||||||||||||||||||||||||
| 303 | { | - | ||||||||||||||||||||||||||||||||||||
| 304 | QV4::Scope scope(b); | - | ||||||||||||||||||||||||||||||||||||
| 305 | QV4::Scoped<QV4ParticleData> r(scope, *thisObject); | - | ||||||||||||||||||||||||||||||||||||
| 306 | - | |||||||||||||||||||||||||||||||||||||
| 307 | if (!r || !r->d()->datum)
| 0 | ||||||||||||||||||||||||||||||||||||
| 308 | RETURN_RESULT(scope.engine->throwError(QStringLiteral("Not a valid ParticleData object"))); never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp; | 0 | ||||||||||||||||||||||||||||||||||||
| 309 | - | |||||||||||||||||||||||||||||||||||||
| 310 | r->d()->datum->lifeSpan = 0; //Don't kill(), because it could still be in the middle of being created | - | ||||||||||||||||||||||||||||||||||||
| 311 | RETURN_RESULT(QV4::Encode::undefined()); never executed: return QV4::Encode(QV4::Encode::undefined()); | 0 | ||||||||||||||||||||||||||||||||||||
| 312 | } | - | ||||||||||||||||||||||||||||||||||||
| 313 | - | |||||||||||||||||||||||||||||||||||||
| 314 | static QV4::ReturnedValue particleData_lifeLeft(const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *, int) | - | ||||||||||||||||||||||||||||||||||||
| 315 | { | - | ||||||||||||||||||||||||||||||||||||
| 316 | QV4::Scope scope(b); | - | ||||||||||||||||||||||||||||||||||||
| 317 | QV4::Scoped<QV4ParticleData> r(scope, *thisObject); | - | ||||||||||||||||||||||||||||||||||||
| 318 | - | |||||||||||||||||||||||||||||||||||||
| 319 | if (!r || !r->d()->datum)
| 0 | ||||||||||||||||||||||||||||||||||||
| 320 | RETURN_RESULT(scope.engine->throwError(QStringLiteral("Not a valid ParticleData object"))); never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp; | 0 | ||||||||||||||||||||||||||||||||||||
| 321 | - | |||||||||||||||||||||||||||||||||||||
| 322 | RETURN_RESULT(QV4::Encode(r->d()->datum->lifeLeft(r->d()->particleSystem))); never executed: return QV4::Encode(QV4::Encode(r->d()->datum->lifeLeft(r->d()->particleSystem))); | 0 | ||||||||||||||||||||||||||||||||||||
| 323 | } | - | ||||||||||||||||||||||||||||||||||||
| 324 | - | |||||||||||||||||||||||||||||||||||||
| 325 | static QV4::ReturnedValue particleData_curSize(const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *, int) | - | ||||||||||||||||||||||||||||||||||||
| 326 | { | - | ||||||||||||||||||||||||||||||||||||
| 327 | QV4::Scope scope(b); | - | ||||||||||||||||||||||||||||||||||||
| 328 | QV4::Scoped<QV4ParticleData> r(scope, *thisObject); | - | ||||||||||||||||||||||||||||||||||||
| 329 | - | |||||||||||||||||||||||||||||||||||||
| 330 | if (!r || !r->d()->datum)
| 0 | ||||||||||||||||||||||||||||||||||||
| 331 | RETURN_RESULT(scope.engine->throwError(QStringLiteral("Not a valid ParticleData object"))); never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp; | 0 | ||||||||||||||||||||||||||||||||||||
| 332 | - | |||||||||||||||||||||||||||||||||||||
| 333 | RETURN_RESULT(QV4::Encode(r->d()->datum->curSize(r->d()->particleSystem))); never executed: return QV4::Encode(QV4::Encode(r->d()->datum->curSize(r->d()->particleSystem))); | 0 | ||||||||||||||||||||||||||||||||||||
| 334 | } | - | ||||||||||||||||||||||||||||||||||||
| 335 | #define COLOR_GETTER_AND_SETTER(VAR, NAME) static QV4::ReturnedValue particleData_get_ ## NAME (const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *, int) \ | - | ||||||||||||||||||||||||||||||||||||
| 336 | { \ | - | ||||||||||||||||||||||||||||||||||||
| 337 | QV4::Scope scope(b); \ | - | ||||||||||||||||||||||||||||||||||||
| 338 | QV4::Scoped<QV4ParticleData> r(scope, *thisObject); \ | - | ||||||||||||||||||||||||||||||||||||
| 339 | if (!r || !r->d()->datum) \ | - | ||||||||||||||||||||||||||||||||||||
| 340 | RETURN_RESULT(scope.engine->throwError(QStringLiteral("Not a valid ParticleData object"))); \ | - | ||||||||||||||||||||||||||||||||||||
| 341 | \ | - | ||||||||||||||||||||||||||||||||||||
| 342 | RETURN_RESULT(QV4::Encode((r->d()->datum->color. VAR )/255.0));\ | - | ||||||||||||||||||||||||||||||||||||
| 343 | }\ | - | ||||||||||||||||||||||||||||||||||||
| 344 | \ | - | ||||||||||||||||||||||||||||||||||||
| 345 | static QV4::ReturnedValue particleData_set_ ## NAME (const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *argv, int argc)\ | - | ||||||||||||||||||||||||||||||||||||
| 346 | {\ | - | ||||||||||||||||||||||||||||||||||||
| 347 | QV4::Scope scope(b); \ | - | ||||||||||||||||||||||||||||||||||||
| 348 | QV4::Scoped<QV4ParticleData> r(scope, *thisObject); \ | - | ||||||||||||||||||||||||||||||||||||
| 349 | if (!r || !r->d()->datum)\ | - | ||||||||||||||||||||||||||||||||||||
| 350 | RETURN_RESULT(scope.engine->throwError(QStringLiteral("Not a valid ParticleData object")));\ | - | ||||||||||||||||||||||||||||||||||||
| 351 | \ | - | ||||||||||||||||||||||||||||||||||||
| 352 | double d = argc ? argv[0].toNumber() : 0; \ | - | ||||||||||||||||||||||||||||||||||||
| 353 | r->d()->datum->color. VAR = qMin(255, qMax(0, (int)::floor(d * 255.0)));\ | - | ||||||||||||||||||||||||||||||||||||
| 354 | RETURN_UNDEFINED(); \ | - | ||||||||||||||||||||||||||||||||||||
| 355 | } | - | ||||||||||||||||||||||||||||||||||||
| 356 | - | |||||||||||||||||||||||||||||||||||||
| 357 | - | |||||||||||||||||||||||||||||||||||||
| 358 | #define SEMIBOOL_GETTER_AND_SETTER(VARIABLE) static QV4::ReturnedValue particleData_get_ ## VARIABLE (const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *, int) \ | - | ||||||||||||||||||||||||||||||||||||
| 359 | { \ | - | ||||||||||||||||||||||||||||||||||||
| 360 | QV4::Scope scope(b); \ | - | ||||||||||||||||||||||||||||||||||||
| 361 | QV4::Scoped<QV4ParticleData> r(scope, *thisObject); \ | - | ||||||||||||||||||||||||||||||||||||
| 362 | if (!r || !r->d()->datum) \ | - | ||||||||||||||||||||||||||||||||||||
| 363 | RETURN_RESULT(scope.engine->throwError(QStringLiteral("Not a valid ParticleData object"))); \ | - | ||||||||||||||||||||||||||||||||||||
| 364 | \ | - | ||||||||||||||||||||||||||||||||||||
| 365 | RETURN_RESULT(QV4::Encode(r->d()->datum-> VARIABLE));\ | - | ||||||||||||||||||||||||||||||||||||
| 366 | }\ | - | ||||||||||||||||||||||||||||||||||||
| 367 | \ | - | ||||||||||||||||||||||||||||||||||||
| 368 | static QV4::ReturnedValue particleData_set_ ## VARIABLE (const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *argv, int argc)\ | - | ||||||||||||||||||||||||||||||||||||
| 369 | {\ | - | ||||||||||||||||||||||||||||||||||||
| 370 | QV4::Scope scope(b); \ | - | ||||||||||||||||||||||||||||||||||||
| 371 | QV4::Scoped<QV4ParticleData> r(scope, *thisObject); \ | - | ||||||||||||||||||||||||||||||||||||
| 372 | if (!r || !r->d()->datum)\ | - | ||||||||||||||||||||||||||||||||||||
| 373 | RETURN_RESULT(scope.engine->throwError(QStringLiteral("Not a valid ParticleData object")));\ | - | ||||||||||||||||||||||||||||||||||||
| 374 | \ | - | ||||||||||||||||||||||||||||||||||||
| 375 | r->d()->datum-> VARIABLE = (argc && argv[0].toBoolean()) ? 1.0 : 0.0;\ | - | ||||||||||||||||||||||||||||||||||||
| 376 | RETURN_UNDEFINED(); \ | - | ||||||||||||||||||||||||||||||||||||
| 377 | } | - | ||||||||||||||||||||||||||||||||||||
| 378 | - | |||||||||||||||||||||||||||||||||||||
| 379 | #define FLOAT_GETTER_AND_SETTER(VARIABLE) static QV4::ReturnedValue particleData_get_ ## VARIABLE (const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *, int) \ | - | ||||||||||||||||||||||||||||||||||||
| 380 | { \ | - | ||||||||||||||||||||||||||||||||||||
| 381 | QV4::Scope scope(b); \ | - | ||||||||||||||||||||||||||||||||||||
| 382 | QV4::Scoped<QV4ParticleData> r(scope, *thisObject); \ | - | ||||||||||||||||||||||||||||||||||||
| 383 | if (!r || !r->d()->datum) \ | - | ||||||||||||||||||||||||||||||||||||
| 384 | RETURN_RESULT(scope.engine->throwError(QStringLiteral("Not a valid ParticleData object"))); \ | - | ||||||||||||||||||||||||||||||||||||
| 385 | \ | - | ||||||||||||||||||||||||||||||||||||
| 386 | RETURN_RESULT(QV4::Encode(r->d()->datum-> VARIABLE));\ | - | ||||||||||||||||||||||||||||||||||||
| 387 | }\ | - | ||||||||||||||||||||||||||||||||||||
| 388 | \ | - | ||||||||||||||||||||||||||||||||||||
| 389 | static QV4::ReturnedValue particleData_set_ ## VARIABLE (const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *argv, int argc)\ | - | ||||||||||||||||||||||||||||||||||||
| 390 | {\ | - | ||||||||||||||||||||||||||||||||||||
| 391 | QV4::Scope scope(b); \ | - | ||||||||||||||||||||||||||||||||||||
| 392 | QV4::Scoped<QV4ParticleData> r(scope, *thisObject); \ | - | ||||||||||||||||||||||||||||||||||||
| 393 | if (!r || !r->d()->datum)\ | - | ||||||||||||||||||||||||||||||||||||
| 394 | RETURN_RESULT(scope.engine->throwError(QStringLiteral("Not a valid ParticleData object")));\ | - | ||||||||||||||||||||||||||||||||||||
| 395 | \ | - | ||||||||||||||||||||||||||||||||||||
| 396 | r->d()->datum-> VARIABLE = argc ? argv[0].toNumber() : qt_qnan();\ | - | ||||||||||||||||||||||||||||||||||||
| 397 | RETURN_UNDEFINED(); \ | - | ||||||||||||||||||||||||||||||||||||
| 398 | } | - | ||||||||||||||||||||||||||||||||||||
| 399 | - | |||||||||||||||||||||||||||||||||||||
| 400 | #define FAKE_FLOAT_GETTER_AND_SETTER(VARIABLE, GETTER, SETTER) static QV4::ReturnedValue particleData_get_ ## VARIABLE (const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *, int) \ | - | ||||||||||||||||||||||||||||||||||||
| 401 | { \ | - | ||||||||||||||||||||||||||||||||||||
| 402 | QV4::Scope scope(b); \ | - | ||||||||||||||||||||||||||||||||||||
| 403 | QV4::Scoped<QV4ParticleData> r(scope, *thisObject); \ | - | ||||||||||||||||||||||||||||||||||||
| 404 | if (!r || !r->d()->datum) \ | - | ||||||||||||||||||||||||||||||||||||
| 405 | RETURN_RESULT(scope.engine->throwError(QStringLiteral("Not a valid ParticleData object"))); \ | - | ||||||||||||||||||||||||||||||||||||
| 406 | \ | - | ||||||||||||||||||||||||||||||||||||
| 407 | RETURN_RESULT(QV4::Encode(r->d()->datum-> GETTER (r->d()->particleSystem)));\ | - | ||||||||||||||||||||||||||||||||||||
| 408 | }\ | - | ||||||||||||||||||||||||||||||||||||
| 409 | \ | - | ||||||||||||||||||||||||||||||||||||
| 410 | static QV4::ReturnedValue particleData_set_ ## VARIABLE (const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *argv, int argc)\ | - | ||||||||||||||||||||||||||||||||||||
| 411 | {\ | - | ||||||||||||||||||||||||||||||||||||
| 412 | QV4::Scope scope(b); \ | - | ||||||||||||||||||||||||||||||||||||
| 413 | QV4::Scoped<QV4ParticleData> r(scope, *thisObject); \ | - | ||||||||||||||||||||||||||||||||||||
| 414 | if (!r || !r->d()->datum)\ | - | ||||||||||||||||||||||||||||||||||||
| 415 | RETURN_RESULT(scope.engine->throwError(QStringLiteral("Not a valid ParticleData object")));\ | - | ||||||||||||||||||||||||||||||||||||
| 416 | \ | - | ||||||||||||||||||||||||||||||||||||
| 417 | r->d()->datum-> SETTER (argc ? argv[0].toNumber() : qt_qnan(), r->d()->particleSystem);\ | - | ||||||||||||||||||||||||||||||||||||
| 418 | RETURN_UNDEFINED(); \ | - | ||||||||||||||||||||||||||||||||||||
| 419 | } | - | ||||||||||||||||||||||||||||||||||||
| 420 | - | |||||||||||||||||||||||||||||||||||||
| 421 | #define REGISTER_ACCESSOR(PROTO, ENGINE, VARIABLE, NAME) \ | - | ||||||||||||||||||||||||||||||||||||
| 422 | PROTO ->defineAccessorProperty( QStringLiteral( #NAME ), particleData_get_ ## VARIABLE , particleData_set_ ## VARIABLE ) | - | ||||||||||||||||||||||||||||||||||||
| 423 | - | |||||||||||||||||||||||||||||||||||||
| 424 | COLOR_GETTER_AND_SETTER(r, red) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode((r->d()->datum->color. r )/255.0));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 425 | COLOR_GETTER_AND_SETTER(g, green) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode((r->d()->datum->color. g )/255.0));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 426 | COLOR_GETTER_AND_SETTER(b, blue) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode((r->d()->datum->color. b )/255.0));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 427 | COLOR_GETTER_AND_SETTER(a, alpha) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode((r->d()->datum->color. a )/255.0));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 428 | SEMIBOOL_GETTER_AND_SETTER(autoRotate) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> autoRotate));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 429 | SEMIBOOL_GETTER_AND_SETTER(update) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> update));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 430 | FLOAT_GETTER_AND_SETTER(x) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> x));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 431 | FLOAT_GETTER_AND_SETTER(y) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> y));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 432 | FLOAT_GETTER_AND_SETTER(t) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> t));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 433 | FLOAT_GETTER_AND_SETTER(lifeSpan) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> lifeSpan));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 434 | FLOAT_GETTER_AND_SETTER(size) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> size));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 435 | FLOAT_GETTER_AND_SETTER(endSize) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> endSize));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 436 | FLOAT_GETTER_AND_SETTER(vx) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> vx));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 437 | FLOAT_GETTER_AND_SETTER(vy) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> vy));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 438 | FLOAT_GETTER_AND_SETTER(ax) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> ax));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 439 | FLOAT_GETTER_AND_SETTER(ay) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> ay));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;executed 1232 times by 1 test: return QV4::Encode::undefined();Executed by:
| 0-1232 | ||||||||||||||||||||||||||||||||||||
| 440 | FLOAT_GETTER_AND_SETTER(xx) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> xx));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 441 | FLOAT_GETTER_AND_SETTER(xy) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> xy));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 442 | FLOAT_GETTER_AND_SETTER(yx) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> yx));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 443 | FLOAT_GETTER_AND_SETTER(yy) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> yy));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 444 | FLOAT_GETTER_AND_SETTER(rotation) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> rotation));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 445 | FLOAT_GETTER_AND_SETTER(rotationVelocity) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> rotationVelocity));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 446 | FLOAT_GETTER_AND_SETTER(animIdx) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> animIdx));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 447 | FLOAT_GETTER_AND_SETTER(frameDuration) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> frameDuration));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 448 | FLOAT_GETTER_AND_SETTER(frameAt) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> frameAt));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 449 | FLOAT_GETTER_AND_SETTER(frameCount) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> frameCount));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 450 | FLOAT_GETTER_AND_SETTER(animT) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> animT));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 451 | FLOAT_GETTER_AND_SETTER(r) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> r));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 452 | FAKE_FLOAT_GETTER_AND_SETTER(curX, curX, setInstantaneousX) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> curX (r->d()->particleSystem)));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 453 | FAKE_FLOAT_GETTER_AND_SETTER(curVX, curVX, setInstantaneousVX) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> curVX (r->d()->particleSystem)));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 454 | FAKE_FLOAT_GETTER_AND_SETTER(curAX, curAX, setInstantaneousAX) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> curAX (r->d()->particleSystem)));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 455 | FAKE_FLOAT_GETTER_AND_SETTER(curY, curY, setInstantaneousY) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> curY (r->d()->particleSystem)));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 456 | FAKE_FLOAT_GETTER_AND_SETTER(curVY, curVY, setInstantaneousVY) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> curVY (r->d()->particleSystem)));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 457 | FAKE_FLOAT_GETTER_AND_SETTER(curAY, curAY, setInstantaneousAY) never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode(QV4::Encode(r->d()->datum-> curAY (r->d()->particleSystem)));never executed: return QV4::Encode(scope.engine->throwError(([]() noexcept -> QString { enum { Size = sizeof(u"" "Not a valid ParticleData object")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Not a valid ParticleData object" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())));never executed: return qstring_literal_temp;never executed: return QV4::Encode::undefined();
| 0 | ||||||||||||||||||||||||||||||||||||
| 458 | - | |||||||||||||||||||||||||||||||||||||
| 459 | QV4ParticleDataDeletable::QV4ParticleDataDeletable(QV4::ExecutionEngine *v4) | - | ||||||||||||||||||||||||||||||||||||
| 460 | { | - | ||||||||||||||||||||||||||||||||||||
| 461 | QV4::Scope scope(v4); | - | ||||||||||||||||||||||||||||||||||||
| 462 | QV4::ScopedObject p(scope, v4->newObject()); | - | ||||||||||||||||||||||||||||||||||||
| 463 | - | |||||||||||||||||||||||||||||||||||||
| 464 | p->defineDefaultProperty(QStringLiteral("discard"), particleData_discard); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 465 | p->defineDefaultProperty(QStringLiteral("lifeLeft"), particleData_lifeLeft); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 466 | p->defineDefaultProperty(QStringLiteral("currentSize"), particleData_curSize); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 467 | - | |||||||||||||||||||||||||||||||||||||
| 468 | REGISTER_ACCESSOR(p, v4, x, initialX); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 469 | REGISTER_ACCESSOR(p, v4, y, initialY); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 470 | REGISTER_ACCESSOR(p, v4, t, t); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 471 | REGISTER_ACCESSOR(p, v4, lifeSpan, lifeSpan); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 472 | REGISTER_ACCESSOR(p, v4, size, startSize); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 473 | REGISTER_ACCESSOR(p, v4, endSize, endSize); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 474 | REGISTER_ACCESSOR(p, v4, vx, initialVX); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 475 | REGISTER_ACCESSOR(p, v4, vy, initialVY); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 476 | REGISTER_ACCESSOR(p, v4, ax, initialAX); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 477 | REGISTER_ACCESSOR(p, v4, ay, initialAY); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 478 | REGISTER_ACCESSOR(p, v4, xx, xDeformationVectorX); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 479 | REGISTER_ACCESSOR(p, v4, xy, xDeformationVectorY); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 480 | REGISTER_ACCESSOR(p, v4, yx, yDeformationVectorX); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 481 | REGISTER_ACCESSOR(p, v4, yy, yDeformationVectorY); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 482 | REGISTER_ACCESSOR(p, v4, rotation, rotation); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 483 | REGISTER_ACCESSOR(p, v4, rotationVelocity, rotationVelocity); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 484 | REGISTER_ACCESSOR(p, v4, autoRotate, autoRotate); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 485 | REGISTER_ACCESSOR(p, v4, animIdx, animationIndex); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 486 | REGISTER_ACCESSOR(p, v4, frameDuration, frameDuration); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 487 | REGISTER_ACCESSOR(p, v4, frameAt, frameAt); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 488 | REGISTER_ACCESSOR(p, v4, frameCount, frameCount); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 489 | REGISTER_ACCESSOR(p, v4, animT, animationT); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 490 | REGISTER_ACCESSOR(p, v4, r, r); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 491 | REGISTER_ACCESSOR(p, v4, update, update); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 492 | REGISTER_ACCESSOR(p, v4, curX, x); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 493 | REGISTER_ACCESSOR(p, v4, curVX, vx); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 494 | REGISTER_ACCESSOR(p, v4, curAX, ax); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 495 | REGISTER_ACCESSOR(p, v4, curY, y); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 496 | REGISTER_ACCESSOR(p, v4, curVY, vy); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 497 | REGISTER_ACCESSOR(p, v4, curAY, ay); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 498 | REGISTER_ACCESSOR(p, v4, red, red); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 499 | REGISTER_ACCESSOR(p, v4, green, green); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 500 | REGISTER_ACCESSOR(p, v4, blue, blue); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 501 | REGISTER_ACCESSOR(p, v4, alpha, alpha); executed 2 times by 1 test: return qstring_literal_temp;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 502 | - | |||||||||||||||||||||||||||||||||||||
| 503 | proto = p; | - | ||||||||||||||||||||||||||||||||||||
| 504 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 505 | - | |||||||||||||||||||||||||||||||||||||
| 506 | QV4ParticleDataDeletable::~QV4ParticleDataDeletable() | - | ||||||||||||||||||||||||||||||||||||
| 507 | { | - | ||||||||||||||||||||||||||||||||||||
| 508 | } | - | ||||||||||||||||||||||||||||||||||||
| 509 | - | |||||||||||||||||||||||||||||||||||||
| 510 | V4_DEFINE_EXTENSION(QV4ParticleDataDeletable, particleV4Data); executed 2 times by 1 test: extensionId = QV8Engine::registerExtension();Executed by:
executed 2 times by 1 test: end of blockExecuted by:
executed 2 times by 1 test: end of blockExecuted by:
executed 998 times by 1 test: return rv;Executed by:
| 0-998 | ||||||||||||||||||||||||||||||||||||
| 511 | - | |||||||||||||||||||||||||||||||||||||
| 512 | - | |||||||||||||||||||||||||||||||||||||
| 513 | QQuickV4ParticleData::QQuickV4ParticleData(QV4::ExecutionEngine* v4, QQuickParticleData* datum, | - | ||||||||||||||||||||||||||||||||||||
| 514 | QQuickParticleSystem *system) | - | ||||||||||||||||||||||||||||||||||||
| 515 | { | - | ||||||||||||||||||||||||||||||||||||
| 516 | if (!v4 || !datum)
| 0-998 | ||||||||||||||||||||||||||||||||||||
| 517 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||||||||
| 518 | - | |||||||||||||||||||||||||||||||||||||
| 519 | QV4::Scope scope(v4); | - | ||||||||||||||||||||||||||||||||||||
| 520 | QV4ParticleDataDeletable *d = particleV4Data(scope.engine); | - | ||||||||||||||||||||||||||||||||||||
| 521 | QV4::ScopedObject o(scope, v4->memoryManager->allocate<QV4ParticleData>(datum, system)); | - | ||||||||||||||||||||||||||||||||||||
| 522 | QV4::ScopedObject p(scope, d->proto.value()); | - | ||||||||||||||||||||||||||||||||||||
| 523 | o->setPrototypeUnchecked(p); | - | ||||||||||||||||||||||||||||||||||||
| 524 | m_v4Value = o; | - | ||||||||||||||||||||||||||||||||||||
| 525 | } executed 998 times by 1 test: end of blockExecuted by:
| 998 | ||||||||||||||||||||||||||||||||||||
| 526 | - | |||||||||||||||||||||||||||||||||||||
| 527 | QQuickV4ParticleData::~QQuickV4ParticleData() | - | ||||||||||||||||||||||||||||||||||||
| 528 | { | - | ||||||||||||||||||||||||||||||||||||
| 529 | } | - | ||||||||||||||||||||||||||||||||||||
| 530 | - | |||||||||||||||||||||||||||||||||||||
| 531 | QQmlV4Handle QQuickV4ParticleData::v4Value() const | - | ||||||||||||||||||||||||||||||||||||
| 532 | { | - | ||||||||||||||||||||||||||||||||||||
| 533 | return QQmlV4Handle(m_v4Value.value()); executed 1232 times by 1 test: return QQmlV4Handle(m_v4Value.value());Executed by:
| 1232 | ||||||||||||||||||||||||||||||||||||
| 534 | } | - | ||||||||||||||||||||||||||||||||||||
| 535 | - | |||||||||||||||||||||||||||||||||||||
| 536 | QT_END_NAMESPACE | - | ||||||||||||||||||||||||||||||||||||
| Source code | Switch to Preprocessed file |