forked from qt-creator/qt-creator
QmlDesigner: Draw FlowDecision and FlowWildcard as diamond
Change-Id: Iade9c17d58354ac67ef990bd231325fad3a35fe3 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user