OpenCoverage

qquickparticlesmodule.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickparticlesmodule.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11static void initResources()-
12{-
13 do { extern int qInitResources_particles (); qInitResources_particles (); } while (false);-
14}
executed 50 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
50
15-
16-
17-
18void QQuickParticlesModule::defineModule()-
19{-
20 initResources();-
21-
22 const char* uri = "QtQuick.Particles";-
23-
24 qmlRegisterType<QQuickParticleSystem>(uri, 2, 0, "ParticleSystem");-
25 qmlRegisterType<QQuickParticleGroup>(uri, 2, 0, "ParticleGroup");-
26-
27 qmlRegisterType<QQuickImageParticle>(uri, 2, 0, "ImageParticle");-
28-
29 qmlRegisterType<QQuickCustomParticle>(uri, 2, 0, "CustomParticle");-
30-
31 qmlRegisterType<QQuickItemParticle>(uri, 2, 0, "ItemParticle");-
32-
33 qmlRegisterType<QQuickParticleEmitter>(uri, 2, 0, "Emitter");-
34 qmlRegisterType<QQuickTrailEmitter>(uri, 2, 0, "TrailEmitter");-
35-
36 qmlRegisterType<QQuickEllipseExtruder>(uri, 2, 0, "EllipseShape");-
37 qmlRegisterType<QQuickRectangleExtruder>(uri, 2, 0, "RectangleShape");-
38 qmlRegisterType<QQuickLineExtruder>(uri, 2, 0, "LineShape");-
39 qmlRegisterType<QQuickMaskExtruder>(uri, 2, 0, "MaskShape");-
40-
41 qmlRegisterType<QQuickPointDirection>(uri, 2, 0, "PointDirection");-
42 qmlRegisterType<QQuickAngleDirection>(uri, 2, 0, "AngleDirection");-
43 qmlRegisterType<QQuickTargetDirection>(uri, 2, 0, "TargetDirection");-
44 qmlRegisterType<QQuickCumulativeDirection>(uri, 2, 0, "CumulativeDirection");-
45-
46 qmlRegisterType<QQuickCustomAffector>(uri, 2, 0, "Affector");-
47 qmlRegisterType<QQuickWanderAffector>(uri, 2, 0, "Wander");-
48 qmlRegisterType<QQuickFrictionAffector>(uri, 2, 0, "Friction");-
49 qmlRegisterType<QQuickAttractorAffector>(uri, 2, 0, "Attractor");-
50 qmlRegisterType<QQuickGravityAffector>(uri, 2, 0, "Gravity");-
51 qmlRegisterType<QQuickAgeAffector>(uri, 2, 0, "Age");-
52 qmlRegisterType<QQuickSpriteGoalAffector>(uri, 2, 0, "SpriteGoal");-
53 qmlRegisterType<QQuickGroupGoalAffector>(uri, 2, 0, "GroupGoal");-
54 qmlRegisterType<QQuickTurbulenceAffector>(uri, 2, 0 , "Turbulence");-
55-
56-
57 qmlRegisterUncreatableType<QQuickParticleAffector>(uri, 2, 0, "ParticleAffector",-
58 ([]() noexcept -> QString { enum { Size = sizeof(u"" "Abstract type. Use one of the inheriting types instead.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Abstract type. Use one of the inheriting types instead." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 50 times by 25 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
qstring_literal_temp;
executed 50 times by 25 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
}()));
50
59 qmlRegisterUncreatableType<QQuickParticlePainter>(uri, 2, 0, "ParticlePainter",-
60 ([]() noexcept -> QString { enum { Size = sizeof(u"" "Abstract type. Use one of the inheriting types instead.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Abstract type. Use one of the inheriting types instead." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 50 times by 25 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
qstring_literal_temp;
executed 50 times by 25 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
}()));
50
61 qmlRegisterUncreatableType<QQuickParticleExtruder>(uri, 2, 0, "ParticleExtruder",-
62 ([]() noexcept -> QString { enum { Size = sizeof(u"" "Abstract type. Use one of the inheriting types instead.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Abstract type. Use one of the inheriting types instead." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 50 times by 25 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
qstring_literal_temp;
executed 50 times by 25 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
}()));
50
63 qmlRegisterUncreatableType<QQuickDirection>(uri, 2, 0, "NullVector",-
64 ([]() noexcept -> QString { enum { Size = sizeof(u"" "Abstract type. Use one of the inheriting types instead.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Abstract type. Use one of the inheriting types instead." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 50 times by 25 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
qstring_literal_temp;
executed 50 times by 25 tests: return qstring_literal_temp;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
}()));
50
65}
executed 50 times by 25 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
50
66-
67-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0