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

QmlDesigner.Navigator: Fixing drag and drop target

parent 11cb488d
......@@ -84,8 +84,10 @@ public:
QColor highlight = option->palette.text().color();
highlight.setAlphaF(0.7);
painter->setPen(QPen(highlight.lighter(), 1));
if (option->rect.height() == 0)
painter->drawLine(rect.topLeft(), rect.topRight());
if (option->rect.height() == 0) {
if (option->rect.top()>0)
painter->drawLine(rect.topLeft(), rect.topRight());
}
else {
highlight.setAlphaF(0.2);
painter->setBrush(highlight);
......
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