aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-05-14 21:51:45 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-20 14:46:12 +0900
commitb34fb70d780d52d13bbfa69923864d68d3cdbb8a (patch)
tree5e442fa90deabfeccd180ae9f15429aa0f294d29 /qt-ui/profile/profilewidget2.cpp
parent97419a0d6a3617559d8bb05fc582a3ba7262649e (diff)
downloadsubsurface-b34fb70d780d52d13bbfa69923864d68d3cdbb8a.tar.gz
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 <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp3
1 files changed, 2 insertions, 1 deletions
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()