Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | class QQmlInfoPrivate | - |
7 | { | - |
8 | public: | - |
9 | QQmlInfoPrivate(QtMsgType type) | - |
10 | : ref (1) | - |
11 | , msgType(type) | - |
12 | , object(nullptr) | - |
13 | {}executed 976 times by 30 tests: end of block Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- ...
| 976 |
14 | | - |
15 | int ref; | - |
16 | QtMsgType msgType; | - |
17 | const QObject *object; | - |
18 | QString buffer; | - |
19 | QList<QQmlError> errors; | - |
20 | }; | - |
21 | | - |
22 | QQmlInfo::QQmlInfo(QQmlInfoPrivate *p) | - |
23 | : QDebug(&p->buffer), d(p) | - |
24 | { | - |
25 | nospace(); | - |
26 | }executed 976 times by 30 tests: end of block Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- ...
| 976 |
27 | | - |
28 | QQmlInfo::QQmlInfo(const QQmlInfo &other) | - |
29 | : QDebug(other), d(other.d) | - |
30 | { | - |
31 | d->ref++; | - |
32 | } never executed: end of block | 0 |
33 | | - |
34 | QQmlInfo::~QQmlInfo() | - |
35 | { | - |
36 | if (0 == --d->refTRUE | evaluated 976 times by 30 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- ...
| FALSE | never evaluated |
) { | 0-976 |
37 | QList<QQmlError> errors = d->errors; | - |
38 | | - |
39 | QQmlEngine *engine = nullptr; | - |
40 | | - |
41 | if (!d->buffer.isEmpty()TRUE | evaluated 976 times by 30 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- ...
| FALSE | never evaluated |
) { | 0-976 |
42 | QQmlError error; | - |
43 | error.setMessageType(d->msgType); | - |
44 | | - |
45 | QObject *object = const_cast<QObject *>(d->object); | - |
46 | | - |
47 | if (objectTRUE | evaluated 924 times by 30 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- ...
| FALSE | evaluated 52 times by 3 testsEvaluated by:- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
|
) { | 52-924 |
48 | engine = qmlEngine(d->object); | - |
49 | | - |
50 | d->buffer.prepend(QLatin1String("QML ") + QQmlMetaType::prettyTypeName(object) + QLatin1String(": ")); | - |
51 | | - |
52 | QQmlData *ddata = QQmlData::get(object, false); | - |
53 | if (ddataTRUE | evaluated 720 times by 28 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- ...
| FALSE | evaluated 204 times by 8 testsEvaluated by:- tst_qqmlinfo
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickstates
- tst_qquicktextedit
- tst_qquicktextinput
|
&& ddata->outerContextTRUE | evaluated 506 times by 27 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktext
- ...
| FALSE | evaluated 214 times by 2 testsEvaluated by:- tst_qquickdrag
- tst_qquickvisualdatamodel
|
) { | 204-720 |
54 | error.setUrl(ddata->outerContext->url()); | - |
55 | error.setLine(ddata->lineNumber); | - |
56 | error.setColumn(ddata->columnNumber); | - |
57 | }executed 506 times by 27 tests: end of block Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktext
- ...
| 506 |
58 | }executed 924 times by 30 tests: end of block Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- ...
| 924 |
59 | | - |
60 | error.setDescription(d->buffer); | - |
61 | | - |
62 | errors.prepend(error); | - |
63 | }executed 976 times by 30 tests: end of block Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- ...
| 976 |
64 | | - |
65 | QQmlEnginePrivate::warning(engine, errors); | - |
66 | | - |
67 | delete d; | - |
68 | }executed 976 times by 30 tests: end of block Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- ...
| 976 |
69 | }executed 976 times by 30 tests: end of block Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- ...
| 976 |
70 | | - |
71 | namespace QtQml { | - |
72 | QQmlInfo qmlDebug(const QObject *me) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtDebugMsg); d->object = me; returnexecuted 2 times by 1 test: return QQmlInfo(d); QQmlInfo(d);executed 2 times by 1 test: return QQmlInfo(d); } QQmlInfo qmlDebug(const QObject *me, const QQmlError &error) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtDebugMsg); d->object = me; d->errors << error; returnnever executed: return QQmlInfo(d); QQmlInfo(d);never executed: return QQmlInfo(d); } QQmlInfo qmlDebug(const QObject *me, const QList<QQmlError> &errors) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtDebugMsg); d->object = me; d->errors = errors; returnnever executed: return QQmlInfo(d); QQmlInfo(d);never executed: return QQmlInfo(d); } | 0-2 |
73 | QQmlInfo qmlInfo(const QObject *me) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtInfoMsg); d->object = me; returnexecuted 48 times by 1 test: return QQmlInfo(d); QQmlInfo(d);executed 48 times by 1 test: return QQmlInfo(d); } QQmlInfo qmlInfo(const QObject *me, const QQmlError &error) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtInfoMsg); d->object = me; d->errors << error; returnnever executed: return QQmlInfo(d); QQmlInfo(d);never executed: return QQmlInfo(d); } QQmlInfo qmlInfo(const QObject *me, const QList<QQmlError> &errors) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtInfoMsg); d->object = me; d->errors = errors; returnnever executed: return QQmlInfo(d); QQmlInfo(d);never executed: return QQmlInfo(d); } | 0-48 |
74 | QQmlInfo qmlWarning(const QObject *me) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtWarningMsg); d->object = me; returnexecuted 926 times by 30 tests: return QQmlInfo(d); Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- ...
QQmlInfo(d);executed 926 times by 30 tests: return QQmlInfo(d); Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- tst_qquickdrag
- tst_qquickflipable
- tst_qquickfontloader
- tst_qquickgravity
- tst_qquickimage
- tst_qquickimageprovider
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpositioners
- ...
} QQmlInfo qmlWarning(const QObject *me, const QQmlError &error) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtWarningMsg); d->object = me; d->errors << error; returnnever executed: return QQmlInfo(d); QQmlInfo(d);never executed: return QQmlInfo(d); } QQmlInfo qmlWarning(const QObject *me, const QList<QQmlError> &errors) { QQmlInfoPrivate *d = new QQmlInfoPrivate(QtMsgType::QtWarningMsg); d->object = me; d->errors = errors; returnnever executed: return QQmlInfo(d); QQmlInfo(d);never executed: return QQmlInfo(d); } | 0-926 |
75 | | - |
76 | | - |
77 | } | - |
78 | | - |
79 | | - |
80 | | - |
81 | | - |
82 | | - |
83 | QQmlInfo qmlInfo(const QObject *me) | - |
84 | { | - |
85 | return never executed: return QtQml::qmlInfo(me); QtQml::qmlInfo(me);never executed: return QtQml::qmlInfo(me); | 0 |
86 | } | - |
87 | | - |
88 | QQmlInfo qmlInfo(const QObject *me, const QQmlError &error) | - |
89 | { | - |
90 | return never executed: return QtQml::qmlInfo(me, error); QtQml::qmlInfo(me, error);never executed: return QtQml::qmlInfo(me, error); | 0 |
91 | } | - |
92 | | - |
93 | QQmlInfo qmlInfo(const QObject *me, const QList<QQmlError> &errors) | - |
94 | { | - |
95 | return never executed: return QtQml::qmlInfo(me, errors); QtQml::qmlInfo(me, errors);never executed: return QtQml::qmlInfo(me, errors); | 0 |
96 | } | - |
97 | | - |
98 | | - |
99 | | - |
100 | | - |
| | |