From 7bdc858d7750c7f8a734460c1a6a70217e8cde81 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 29 Nov 2018 10:14:07 +0100 Subject: [PATCH] QmlDesigner: Improve resize handle size The visual representation of the resize handlers was 1 pixel too small compared to the bounding rects. They were also not centered on the 2px thick line. And they simply looked too tiny compared to resize handlers in other applications. Change-Id: Idc48d66178cd5f0158efe2f66d685afc4549022e Reviewed-by: Thomas Hartmann --- .../qmldesigner/components/formeditor/resizehandleitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/formeditor/resizehandleitem.cpp b/src/plugins/qmldesigner/components/formeditor/resizehandleitem.cpp index a44bbadcdaf..50ad27afe8e 100644 --- a/src/plugins/qmldesigner/components/formeditor/resizehandleitem.cpp +++ b/src/plugins/qmldesigner/components/formeditor/resizehandleitem.cpp @@ -60,7 +60,7 @@ void ResizeHandleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem * painter->setPen(pen); painter->setRenderHint(QPainter::Antialiasing, false); painter->setBrush(QColor(255, 255, 255)); - painter->drawRect(QRectF(-2., -2., 4., 4.)); + painter->drawRect(QRectF(-3., -3., 5., 5.)); painter->restore(); }