ui: Updated graph node and project type icons

This commit is contained in:
Eberhard Graether
2016-11-29 15:51:47 +01:00
parent d24e5b5bbd
commit c7886cfb3a
28 changed files with 14 additions and 13 deletions
@@ -425,6 +425,8 @@ void QtGraphNode::setStyle(const GraphViewStyle::NodeStyle& style)
pixmap.scaleToHeight(style.iconSize);
m_icon = new QGraphicsPixmapItem(utility::colorizePixmap(pixmap.pixmap(), style.color.icon.c_str()), this);
m_icon->setTransformationMode(Qt::SmoothTransformation);
m_icon->setShapeMode(QGraphicsPixmapItem::BoundingRectShape);
m_icon->setPos(style.iconOffset.x, style.iconOffset.y);
}
@@ -52,6 +52,7 @@ QtGraphNodeAccess::QtGraphNodeAccess(AccessKind accessKind)
m_accessIcon = new QGraphicsPixmapItem(pixmap.pixmap(), this);
m_accessIcon->setTransformationMode(Qt::SmoothTransformation);
m_accessIcon->setShapeMode(QGraphicsPixmapItem::BoundingRectShape);
}
}
@@ -24,6 +24,7 @@ QtGraphNodeExpandToggle::QtGraphNodeExpandToggle(bool expanded, int invisibleSub
const int iconHeight = 4;
m_icon = new QGraphicsPixmapItem(this);
m_icon->setTransformationMode(Qt::SmoothTransformation);
m_icon->setShapeMode(QGraphicsPixmapItem::BoundingRectShape);
QtDeviceScaledPixmap pixmap((ResourcePaths::getGuiPath() + "graph_view/images/arrow.png").c_str());
pixmap.scaleToHeight(iconHeight);