feat: use qresources for node icons

This commit is contained in:
parker
2025-06-26 09:00:46 +01:00
parent f060676330
commit b702fd55f7
4 changed files with 165 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ void NodeGraphic::initFonts()
void NodeGraphic::initIcon()
{
icon_ = new NodeIconGraphic("/home/parker/MyRepos/masters/static/node-icons/grid.svg", this);
icon_ = new NodeIconGraphic(":/node-icons/grid.svg", this);
// icon_ = new NodeIconGraphic("/home/parker/MyRepos/masters/static/icons/icon-main-white.svg", this);
icon_->setScale(1.0f/icon_->boundingRect().width()*iconScale_);