| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/util/qsgdefaultninepatchnode.cpp | 
| Switch to Source code | Preprocessed file | 
| Line | Source | Count | 
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | QSGDefaultNinePatchNode::QSGDefaultNinePatchNode() | - | 
| 5 | : m_geometry(QSGGeometry::defaultAttributes_TexturedPoint2D(), 4) | - | 
| 6 | { | - | 
| 7 | m_geometry.setDrawingMode(QSGGeometry::DrawTriangleStrip); | - | 
| 8 | setGeometry(&m_geometry); | - | 
| 9 | setMaterial(&m_material); | - | 
| 10 | } never executed:  end of block | 0 | 
| 11 | - | |
| 12 | QSGDefaultNinePatchNode::~QSGDefaultNinePatchNode() | - | 
| 13 | { | - | 
| 14 | delete m_material.texture(); | - | 
| 15 | } never executed:  end of block | 0 | 
| 16 | - | |
| 17 | void QSGDefaultNinePatchNode::setTexture(QSGTexture *texture) | - | 
| 18 | { | - | 
| 19 | delete m_material.texture(); | - | 
| 20 | m_material.setTexture(texture); | - | 
| 21 | } never executed:  end of block | 0 | 
| 22 | - | |
| 23 | void QSGDefaultNinePatchNode::setBounds(const QRectF &bounds) | - | 
| 24 | { | - | 
| 25 | m_bounds = bounds; | - | 
| 26 | } never executed:  end of block | 0 | 
| 27 | - | |
| 28 | void QSGDefaultNinePatchNode::setDevicePixelRatio(qreal ratio) | - | 
| 29 | { | - | 
| 30 | m_devicePixelRatio = ratio; | - | 
| 31 | } never executed:  end of block | 0 | 
| 32 | - | |
| 33 | void QSGDefaultNinePatchNode::setPadding(qreal left, qreal top, qreal right, qreal bottom) | - | 
| 34 | { | - | 
| 35 | m_padding = QVector4D(left, top, right, bottom); | - | 
| 36 | } never executed:  end of block | 0 | 
| 37 | - | |
| 38 | void QSGDefaultNinePatchNode::update() | - | 
| 39 | { | - | 
| 40 | rebuildGeometry(m_material.texture(), &m_geometry, m_padding, m_bounds, m_devicePixelRatio); | - | 
| 41 | markDirty(QSGNode::DirtyGeometry | QSGNode::DirtyMaterial); | - | 
| 42 | } never executed:  end of block | 0 | 
| 43 | - | |
| 44 | - | |
| Switch to Source code | Preprocessed file |