src: Fixed errors in file path switch

This commit is contained in:
Eberhard Graether
2016-01-27 12:20:46 +01:00
parent 8d6220dafb
commit 6cadab1b23
2 changed files with 3 additions and 7 deletions
@@ -37,13 +37,10 @@ QtGraphNodeAccess::QtGraphNodeAccess(TokenComponentAccess::AccessType accessType
break;
}
QtDeviceScaledPixmap pixmap(QString::fromStdString(ResourcePaths::getGuiPath() + "graph_view/images/" + accessString + ".png"));
pixmap.scaleToHeight(m_accessIconSize);
if (fileName.size() > 0)
{
QtDeviceScaledPixmap pixmap(QString::fromStdString(ResourcePaths::getGuiPath() + fileName + ".png"));
QtDeviceScaledPixmap pixmap(
QString::fromStdString(ResourcePaths::getGuiPath() + "graph_view/images/" + fileName + ".png"));
pixmap.scaleToHeight(m_accessIconSize);
m_accessIcon = new QGraphicsPixmapItem(pixmap.pixmap(), this);