diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/divelistview.cpp | 15 | ||||
-rw-r--r-- | desktop-widgets/divelistview.h | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp index a6a570127..8795eeea8 100644 --- a/desktop-widgets/divelistview.cpp +++ b/desktop-widgets/divelistview.cpp @@ -790,21 +790,6 @@ void DiveListView::deleteDive() fixMessyQtModelBehaviour(); } -void DiveListView::testSlot() -{ - struct dive *d = (struct dive *)contextMenuIndex.data(DiveTripModel::DIVE_ROLE).value<void *>(); - if (d) { - qDebug("testSlot called on dive #%d", d->number); - } else { - QModelIndex child = contextMenuIndex.child(0, 0); - d = (struct dive *)child.data(DiveTripModel::DIVE_ROLE).value<void *>(); - if (d) - qDebug("testSlot called on trip including dive #%d", d->number); - else - qDebug("testSlot called on trip with no dive"); - } -} - void DiveListView::contextMenuEvent(QContextMenuEvent *event) { QAction *collapseAction = NULL; diff --git a/desktop-widgets/divelistview.h b/desktop-widgets/divelistview.h index eaabe5c8d..1fe0e803d 100644 --- a/desktop-widgets/divelistview.h +++ b/desktop-widgets/divelistview.h @@ -45,7 +45,6 @@ slots: void removeFromTrip(); void deleteDive(); void markDiveInvalid(); - void testSlot(); void fixMessyQtModelBehaviour(); void mergeTripAbove(); void mergeTripBelow(); |