[qet] [3753] Improve selected rect of primitive decorator (set cosmetic) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3753
Author: blacksun
Date: 2015-02-22 09:31:59 +0100 (Sun, 22 Feb 2015)
Log Message:
-----------
Improve selected rect of primitive decorator (set cosmetic)
Modified Paths:
--------------
branches/Qt5/sources/editor/elementprimitivedecorator.cpp
Modified: branches/Qt5/sources/editor/elementprimitivedecorator.cpp
===================================================================
--- branches/Qt5/sources/editor/elementprimitivedecorator.cpp 2015-02-22 08:26:22 UTC (rev 3752)
+++ branches/Qt5/sources/editor/elementprimitivedecorator.cpp 2015-02-22 08:31:59 UTC (rev 3753)
@@ -88,8 +88,10 @@
Q_UNUSED(widget)
painter -> save();
- // paint the original bounding rect
- painter -> setPen(Qt::DashLine);
+ // paint the original bounding rect
+ QPen pen(Qt::DashLine);
+ pen.setCosmetic(true);
+ painter -> setPen(pen);
//QGraphicsItemGroup::paint(painter, option, widget);
painter -> drawRect(modified_bounding_rect_);
drawSquares(painter, option, widget);