path: root/src
diff options
authorIgor Mironchik <>2018-01-25 15:43:40 +0300
committerIgor Mironchik <>2018-01-27 05:12:18 +0000
commitb1a58b20ae109fac2756101fea4dcd8ee0b96531 (patch)
tree8fd9f3797023ccb4b5ed476bb1e97b741fc10c3f /src
parent089969540f4877c778172ee0ccbd69960a179b43 (diff)
Fix missing update of QTreeView on setTreePosition()
There was missing update in setTreePosition() or better to say update was but in not that part of QTreeView that needed. Now QTreeView correctly updates and paints tree decoration in a new place on changing tree position. [ChangeLog][QtWidgets][QTreeView] Fixed missing update of QTreeView on changing tree position. Task-number: QTBUG-65980 Change-Id: Id79ab8fcb39d511245a551068640684dd2a10cb9 Reviewed-by: Thorbjørn Lund Martsum <>
Diffstat (limited to 'src')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/itemviews/qtreeview.cpp b/src/widgets/itemviews/qtreeview.cpp
index 4795d9f1b1..8d27305071 100644
--- a/src/widgets/itemviews/qtreeview.cpp
+++ b/src/widgets/itemviews/qtreeview.cpp
@@ -987,7 +987,7 @@ void QTreeView::setTreePosition(int index)
d->treePosition = index;
- update();
+ d->viewport->update();