From 3169ec8dc9cf7f385a6662a3d75396c24ba0da5c Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 14 Jan 2015 22:36:00 -0200 Subject: Do not set the rectangle if it's the same Strangelly, this method was being called even if the rectangle was the same, so we deleted everything and recreated everything again. tsc tsc. Some more improvement is needed but we are getting there. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/divetooltipitem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qt-ui/profile') diff --git a/qt-ui/profile/divetooltipitem.cpp b/qt-ui/profile/divetooltipitem.cpp index 46d50be02..db0963208 100644 --- a/qt-ui/profile/divetooltipitem.cpp +++ b/qt-ui/profile/divetooltipitem.cpp @@ -57,7 +57,9 @@ void ToolTipItem::clear() void ToolTipItem::setRect(const QRectF &r) { - // qDeleteAll(childItems()); + if( r == rectangle ) { + return; + } delete background; rectangle = r; -- cgit v1.2.3-70-g09d2