Mercurial > hg > syntilista
comparison src/main.cpp @ 210:02aae61e807e
Scroll along with the currently selected person in the person list,
especially when changing selected person via pgup/pgdown.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 21 Nov 2017 12:29:44 +0200 |
parents | 6f404158ce8c |
children | 6585cac42b75 |
comparison
equal
deleted
inserted
replaced
209:6f404158ce8c | 210:02aae61e807e |
---|---|
962 | 962 |
963 if (nrow != prow) | 963 if (nrow != prow) |
964 { | 964 { |
965 sel->setCurrentIndex(model_People->index(nrow, 0), | 965 sel->setCurrentIndex(model_People->index(nrow, 0), |
966 QItemSelectionModel::ClearAndSelect|QItemSelectionModel::Rows); | 966 QItemSelectionModel::ClearAndSelect|QItemSelectionModel::Rows); |
967 | |
968 ui->tableview_People->scrollTo(model_People->index(nrow, 1)); | |
967 } | 969 } |
968 } | 970 } |
969 | 971 |
970 | 972 |
971 void SyntilistaMainWindow::selectRowPrev() | 973 void SyntilistaMainWindow::selectRowPrev() |