List<QModelIndex> selections = noteTableView.selectionModel().selectedRows();
if (selections.size() == 0)
return;
QModelIndex index = selections.get(0);
int row = selections.get(0).row();
String guid = (String)index.model().index(row, Global.noteTableGuidPosition).data();
scrollToGuid(guid);
}
// Scroll to the current GUID in tthe list.
// Scroll to a particular index item
private void scrollToGuid(String guid) {