mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove DiveListView::testSlot()
This debugging-slot was not linked anywhere. And especially in the light of the impending refactoring of DiveListView/DiveTreeModel it seems pointless to keep old debugging code. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
02e76be96a
commit
58cdc67227
2 changed files with 0 additions and 16 deletions
|
@ -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;
|
||||
|
|
|
@ -45,7 +45,6 @@ slots:
|
|||
void removeFromTrip();
|
||||
void deleteDive();
|
||||
void markDiveInvalid();
|
||||
void testSlot();
|
||||
void fixMessyQtModelBehaviour();
|
||||
void mergeTripAbove();
|
||||
void mergeTripBelow();
|
||||
|
|
Loading…
Add table
Reference in a new issue