diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-12-14 14:16:48 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2021-01-05 18:31:54 +0000 |
commit | 9d36ee1904114a91a5c08b18ccfb72cd1d33d58f (patch) | |
tree | 88c4d5ba77ce0cb53c90f919b09de2fad44476b2 /src/widgets | |
parent | 0cbbba2aa5b472241d45b4be6959a792062fbc30 (diff) |
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>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/itemviews/qtableview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |