summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-05-20 13:05:46 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-09-16 18:33:58 +0200
commit8c8b9a4173f4add522ec13de85107deba7c82da0 (patch)
tree9b1653957a8435d3576eb963a2a0ff4d317db5e4 /tests/auto/widgets
parentc5f611c0841791baab4790588352a7b5eb5dc4c3 (diff)
Normalize rounding
Change the rounding of negative half values to match standard C++ round, this will also allow future optimizations. Change-Id: I8f8c71bed1f05891e82ea787c6bc284297de9c5c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/widgets')
-rw-r--r--tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
index 77b2c0251d..42a16dc1f4 100644
--- a/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
+++ b/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
@@ -4840,6 +4840,7 @@ public:
{
setFlag(QGraphicsItem::ItemIsFocusable, true);
setFlag(QGraphicsItem::ItemAcceptsInputMethod, true);
+ setPen(Qt::NoPen); // Avoid adding a half pixel border to the rect.
}
QVariant inputMethodQuery(Qt::InputMethodQuery) const override