From 9d36ee1904114a91a5c08b18ccfb72cd1d33d58f Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Mon, 14 Dec 2020 14:16:48 +0100 Subject: [PATCH] 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 --- src/widgets/itemviews/qtableview.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widgets/itemviews/qtableview.cpp b/src/widgets/itemviews/qtableview.cpp index 544709d811..05d8807e10 100644 --- a/src/widgets/itemviews/qtableview.cpp +++ b/src/widgets/itemviews/qtableview.cpp @@ -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();