Use QElement::getIndexPath instead of QuickDialogTableView::visibleIndexForElement:

QuickDialogTableView::visibleIndexForElement: returns an incorrect
result after rows have been deleted dynamically from the tableview.

Since this method gives incorrect results and is only used in 1 place,
I deleted it and replaced it with QElement::getIndexPath which returns
the correct result.