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.
main
Teo Mrnjavac 11 years ago
parent f2add6f2c2
commit 1a48524a9a

@ -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();
}

Loading…
Cancel
Save