Repaint viewport on selection changed.

This issue wasn't noticeable earlier because every selection change
implied additional operations (in Replace) which used to trigger a
repaint at the right time for free. With this we make sure we get a
repaint.
This commit is contained in:
Teo Mrnjavac 2016-01-12 13:44:18 +01:00
parent f2add6f2c2
commit 1a48524a9a

View File

@ -419,6 +419,7 @@ PartitionBarsView::setSelection( const QRect& rect, QItemSelectionModel::Selecti
int x1, y1, x2, y2;
rect.getCoords( &x1, &y1, &x2, &y2 );
selectionModel()->select( indexAt( QPoint( x2, y2 ) ), flags );
viewport()->repaint();
}