From b34fb70d780d52d13bbfa69923864d68d3cdbb8a Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 14 May 2014 21:51:45 -0300 Subject: Speed Improvement: Unhide all events by calling event->show() The old code replotted the whole dive, while what we really wanted was to show the events. so just ->show() them. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 473f62d27..d95a32be8 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -816,7 +816,8 @@ void ProfileWidget2::unhideEvents() for (int i = 0; i < evn_used; i++) { ev_namelist[i].plot_ev = true; } - replot(); + Q_FOREACH (DiveEventItem *item, eventItems) + item->show(); } void ProfileWidget2::removeEvent() -- cgit v1.2.3-70-g09d2