#889 Added different icons to the intersection box tree items as well

This commit is contained in:
Jacob Støren 2016-09-30 11:15:31 +02:00
parent 45634df0e9
commit 8d5240aca5

View File

@ -468,14 +468,21 @@ void RimIntersectionBox::updateVisibility()
if (m_singlePlaneState == PLANE_STATE_X)
{
m_maxXCoord.uiCapability()->setUiReadOnly(true);
this->setUiIcon(QIcon(QString(":/IntersectionXPlane16x16.png")));
}
else if (m_singlePlaneState == PLANE_STATE_Y)
{
m_maxYCoord.uiCapability()->setUiReadOnly(true);
this->setUiIcon(QIcon(QString(":/IntersectionYPlane16x16.png")));
}
else if (m_singlePlaneState == PLANE_STATE_Z)
{
m_maxDepth.uiCapability()->setUiReadOnly(true);
this->setUiIcon(QIcon(QString(":/IntersectionZPlane16x16.png")));
}
else
{
this->setUiIcon(QIcon(QString(":/IntersectionBox16x16.png")));
}
}