OpenCoverage

qsgbasicglyphnode.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgbasicglyphnode.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QSGBasicGlyphNode::QSGBasicGlyphNode()-
5 : m_style(QQuickText::Normal)-
6 , m_material(nullptr)-
7 , m_geometry(QSGGeometry::defaultAttributes_TexturedPoint2D(), 0)-
8{-
9 m_geometry.setDrawingMode(QSGGeometry::DrawTriangles);-
10 setGeometry(&m_geometry);-
11}
executed 72 times by 1 test: end of block
Executed by:
  • tst_scenegraph
72
12-
13QSGBasicGlyphNode::~QSGBasicGlyphNode()-
14{-
15 delete m_material;-
16}
executed 72 times by 1 test: end of block
Executed by:
  • tst_scenegraph
72
17-
18void QSGBasicGlyphNode::setColor(const QColor &color)-
19{-
20 m_color = color;-
21 if (m_material != nullptr
m_material != nullptrDescription
TRUEnever evaluated
FALSEevaluated 72 times by 1 test
Evaluated by:
  • tst_scenegraph
) {
0-72
22 setMaterialColor(color);-
23 markDirty(DirtyMaterial);-
24 }
never executed: end of block
0
25}
executed 72 times by 1 test: end of block
Executed by:
  • tst_scenegraph
72
26-
27void QSGBasicGlyphNode::setGlyphs(const QPointF &position, const QGlyphRun &glyphs)-
28{-
29 if (m_material != nullptr
m_material != nullptrDescription
TRUEnever evaluated
FALSEevaluated 72 times by 1 test
Evaluated by:
  • tst_scenegraph
)
0-72
30 delete m_material;
never executed: delete m_material;
0
31-
32 m_position = position;-
33 m_glyphs = glyphs;-
34-
35-
36 qsgnode_set_description(this, QLatin1String("glyphs"));-
37-
38}
executed 72 times by 1 test: end of block
Executed by:
  • tst_scenegraph
72
39-
40void QSGBasicGlyphNode::setStyle(QQuickText::TextStyle style)-
41{-
42 if (m_style == style
m_style == styleDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_scenegraph
FALSEnever evaluated
)
0-72
43 return;
executed 72 times by 1 test: return;
Executed by:
  • tst_scenegraph
72
44 m_style = style;-
45}
never executed: end of block
0
46-
47void QSGBasicGlyphNode::setStyleColor(const QColor &color)-
48{-
49 if (m_styleColor == color
m_styleColor == colorDescription
TRUEnever evaluated
FALSEevaluated 72 times by 1 test
Evaluated by:
  • tst_scenegraph
)
0-72
50 return;
never executed: return;
0
51 m_styleColor = color;-
52}
executed 72 times by 1 test: end of block
Executed by:
  • tst_scenegraph
72
53-
54-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0