From 3be66f7427c734749f2024b21134b13a89b9b085 Mon Sep 17 00:00:00 2001
From: Alessandro Portale <alessandro.portale@qt.io>
Date: Mon, 25 Jul 2016 17:57:55 +0200
Subject: [PATCH] QmlDesigner: Fix formeditor selection indicatoor on HighDPI

Make it a real reactangle, without worn-out corners.

Change-Id: If7cce94896a485d34ae23602bb1dc7437cf1c62c
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
---
 .../qmldesigner/components/formeditor/selectionindicator.cpp     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/qmldesigner/components/formeditor/selectionindicator.cpp b/src/plugins/qmldesigner/components/formeditor/selectionindicator.cpp
index 9dbf66d883d..b2b74571493 100644
--- a/src/plugins/qmldesigner/components/formeditor/selectionindicator.cpp
+++ b/src/plugins/qmldesigner/components/formeditor/selectionindicator.cpp
@@ -91,6 +91,7 @@ void SelectionIndicator::setItems(const QList<FormEditorItem*> &itemList)
         newSelectionIndicatorGraphicsItem->setFlag(QGraphicsItem::ItemIsSelectable, false);
 
         QPen pen;
+        pen.setJoinStyle(Qt::MiterJoin);
         pen.setColor(QColor(108, 141, 221));
         newSelectionIndicatorGraphicsItem->setPen(pen);
         newSelectionIndicatorGraphicsItem->setCursor(m_cursor);
-- 
GitLab