Fix TableView so item delegates can receive click events

Task-number: QTBUG-31206

Change-Id: I47ce1045f84a63240c200637a46bbaea823e059e