| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgbasicglyphnode.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | QSGBasicGlyphNode::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 blockExecuted by:
| 72 | ||||||
| 12 | - | |||||||
| 13 | QSGBasicGlyphNode::~QSGBasicGlyphNode() | - | ||||||
| 14 | { | - | ||||||
| 15 | delete m_material; | - | ||||||
| 16 | } executed 72 times by 1 test: end of blockExecuted by:
| 72 | ||||||
| 17 | - | |||||||
| 18 | void QSGBasicGlyphNode::setColor(const QColor &color) | - | ||||||
| 19 | { | - | ||||||
| 20 | m_color = color; | - | ||||||
| 21 | if (m_material != nullptr
| 0-72 | ||||||
| 22 | setMaterialColor(color); | - | ||||||
| 23 | markDirty(DirtyMaterial); | - | ||||||
| 24 | } never executed: end of block | 0 | ||||||
| 25 | } executed 72 times by 1 test: end of blockExecuted by:
| 72 | ||||||
| 26 | - | |||||||
| 27 | void QSGBasicGlyphNode::setGlyphs(const QPointF &position, const QGlyphRun &glyphs) | - | ||||||
| 28 | { | - | ||||||
| 29 | if (m_material != nullptr
| 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 blockExecuted by:
| 72 | ||||||
| 39 | - | |||||||
| 40 | void QSGBasicGlyphNode::setStyle(QQuickText::TextStyle style) | - | ||||||
| 41 | { | - | ||||||
| 42 | if (m_style == style
| 0-72 | ||||||
| 43 | return; executed 72 times by 1 test: return;Executed by:
| 72 | ||||||
| 44 | m_style = style; | - | ||||||
| 45 | } never executed: end of block | 0 | ||||||
| 46 | - | |||||||
| 47 | void QSGBasicGlyphNode::setStyleColor(const QColor &color) | - | ||||||
| 48 | { | - | ||||||
| 49 | if (m_styleColor == color
| 0-72 | ||||||
| 50 | return; never executed: return; | 0 | ||||||
| 51 | m_styleColor = color; | - | ||||||
| 52 | } executed 72 times by 1 test: end of blockExecuted by:
| 72 | ||||||
| 53 | - | |||||||
| 54 | - | |||||||
| Switch to Source code | Preprocessed file |