| 97 | } |
| 98 | |
| 99 | QSGNode *Icon::createSubtree(qreal initialOpacity) |
| 100 | { |
| 101 | auto opacityNode = new QSGOpacityNode{}; |
| 102 | opacityNode->setFlag(QSGNode::OwnedByParent, true); |
| 103 | opacityNode->setOpacity(initialOpacity); |
| 104 | |
| 105 | auto *mNode = new ManagedTextureNode; |
| 106 | |
| 107 | mNode->setTexture(s_iconImageCache->loadTexture(window(), m_icon, QQuickWindow::TextureCanUseAtlas)); |
| 108 | |
| 109 | opacityNode->appendChildNode(mNode); |
| 110 | |
| 111 | return opacityNode; |
| 112 | } |
| 113 | |
| 114 | void Icon::updateSubtree(QSGNode *node, qreal opacity) |
| 115 | { |
nothing calls this directly
no test coverage detected