diff options
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 19819eae9..97cd6fe12 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -1318,17 +1318,6 @@ void ProfileWidget2::setProfileState() } #ifndef SUBSURFACE_MOBILE -void ProfileWidget2::clearHandlers() -{ - if (handles.count()) { - foreach (DiveHandler *handle, handles) { - scene()->removeItem(handle); - delete handle; - } - handles.clear(); - } -} - void ProfileWidget2::setToolTipVisibile(bool visible) { toolTipItem->setVisible(visible); @@ -1339,7 +1328,6 @@ void ProfileWidget2::setAddState() if (currentState == ADD) return; - clearHandlers(); setProfileState(); mouseFollowerHorizontal->setVisible(true); mouseFollowerVertical->setVisible(true); @@ -1373,7 +1361,6 @@ void ProfileWidget2::setPlanState() if (currentState == PLAN) return; - clearHandlers(); setProfileState(); mouseFollowerHorizontal->setVisible(true); mouseFollowerVertical->setVisible(true); |