Commit f2377d47 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.Navigator: Whole row semitransparent when visible unchecked

parent 90ca63ef
...@@ -76,6 +76,9 @@ void IdItemDelegate::paint(QPainter *painter, ...@@ -76,6 +76,9 @@ void IdItemDelegate::paint(QPainter *painter,
if (option.state & QStyle::State_Selected) if (option.state & QStyle::State_Selected)
painter->fillRect(option.rect, option.palette.highlight()); painter->fillRect(option.rect, option.palette.highlight());
if (m_TreeModel->isNodeInvisible( index ))
painter->setOpacity(0.5);
ModelNode node = m_TreeModel->nodeForIndex(index); ModelNode node = m_TreeModel->nodeForIndex(index);
QIcon icon=node.metaInfo().icon(); QIcon icon=node.metaInfo().icon();
...@@ -116,8 +119,6 @@ void IdItemDelegate::paint(QPainter *painter, ...@@ -116,8 +119,6 @@ void IdItemDelegate::paint(QPainter *painter,
} }
} }
if (m_TreeModel->isNodeInvisible( index ))
painter->setOpacity(0.5);
painter->drawText(option.rect.bottomLeft()+QPoint(8+pixmap.width(),-4),myString); painter->drawText(option.rect.bottomLeft()+QPoint(8+pixmap.width(),-4),myString);
painter->restore(); painter->restore();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment