summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-08-27 15:29:16 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-08-27 15:09:32 +0000
commitd2b2eb91717b355d60ed213a0001c925358a2d85 (patch)
treee4ab6f83c01dbeb0271be81969996c47843dba7e /src/Authoring/Studio/Palettes
parent88b14898a965140e065c21141df0cab1de1fb539 (diff)
Fix update issue with subpresentation indicator
The indicator wasn't redrawn unless unrelated changes forced update of the timeline row. Change-Id: I47bf9249e31a6675fc2c54ae292b9da9e95dc17e Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes')
-rw-r--r--src/Authoring/Studio/Palettes/TimelineGraphicsView/ui/RowTree.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/TimelineGraphicsView/ui/RowTree.cpp b/src/Authoring/Studio/Palettes/TimelineGraphicsView/ui/RowTree.cpp
index c4afd2cb..c8878aa6 100644
--- a/src/Authoring/Studio/Palettes/TimelineGraphicsView/ui/RowTree.cpp
+++ b/src/Authoring/Studio/Palettes/TimelineGraphicsView/ui/RowTree.cpp
@@ -885,6 +885,7 @@ void RowTree::updateSubpresentations(int updateParentsOnlyVal)
RowTree *parentRow = m_parentRow;
while (parentRow) {
parentRow->m_numDescendantSubpresentations += n * updateParentsOnlyVal;
+ parentRow->update();
parentRow = parentRow->m_parentRow;
}
}
@@ -898,10 +899,12 @@ void RowTree::updateSubpresentations(int updateParentsOnlyVal)
RowTree *parentRow = m_parentRow;
while (parentRow) {
parentRow->m_numDescendantSubpresentations += n;
+ parentRow->update();
parentRow = parentRow->m_parentRow;
}
}
}
+ update();
}
void RowTree::updateLabelPosition()