TableView: Trigger the resizing of editors resizing a row/column
If there is an editor in the table then this needs to be updated as the resize happens, otherwise it will not adapt to the new size correctly and can appear drawn over other cells. Fixes: QTBUG-85484 Pick-to: 5.15 6.0 Change-Id: I918c37f1ee1b0614c03c6b38f95f0f8b35a571f2 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
This commit is contained in:
parent
0cbbba2aa5
commit
9d36ee1904
@ -3010,6 +3010,8 @@ void QTableView::timerEvent(QTimerEvent *event)
|
||||
updateGeometries();
|
||||
killTimer(d->columnResizeTimerID);
|
||||
d->columnResizeTimerID = 0;
|
||||
} else {
|
||||
updateEditorGeometries();
|
||||
}
|
||||
|
||||
QRect rect;
|
||||
@ -3038,6 +3040,8 @@ void QTableView::timerEvent(QTimerEvent *event)
|
||||
updateGeometries();
|
||||
killTimer(d->rowResizeTimerID);
|
||||
d->rowResizeTimerID = 0;
|
||||
} else {
|
||||
updateEditorGeometries();
|
||||
}
|
||||
|
||||
int viewportHeight = d->viewport->height();
|
||||
|
Loading…
Reference in New Issue
Block a user