QmlDesigner: Draw FlowDecision and FlowWildcard as diamond

Change-Id: Iade9c17d58354ac67ef990bd231325fad3a35fe3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2020-03-25 13:27:42 +01:00
parent 23dc065327
commit 02093f5ab2

View File

@@ -1145,7 +1145,17 @@ void FormEditorFlowDecisionItem::paint(QPainter *painter, const QStyleOptionGrap
painter->fillRect(boundingRect(), fillColor);
}
painter->drawRect(boundingRect());
painter->drawLine(boundingRect().left(), boundingRect().center().y(),
boundingRect().center().x(), boundingRect().top());
painter->drawLine(boundingRect().center().x(), boundingRect().top(),
boundingRect().right(), boundingRect().center().y());
painter->drawLine(boundingRect().right(), boundingRect().center().y(),
boundingRect().center().x(), boundingRect().bottom());
painter->drawLine(boundingRect().center().x(), boundingRect().bottom(),
boundingRect().left(), boundingRect().center().y());
painter->restore();
}