summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-09-06 17:43:23 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-09-07 09:49:48 +0000
commitf9bd115539b9db0506013011947f62aa7ae0e11e (patch)
treedd1e1877b3175a0d21baf0b7e8d391358fd8e49b /src/Authoring/Studio/Palettes
parentcab8df2aee0e1977179ce3b7cadc5e211a05572e (diff)
Update snap steps after zoom and expand/collapse
Task-number: QT3DS-2277 Change-Id: I91719c87c394a83bfa68b5ea6e4d374b0ff8ad05 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/TimelineGraphicsScene.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/TimelineGraphicsView/TimelineGraphicsScene.cpp b/src/Authoring/Studio/Palettes/TimelineGraphicsView/TimelineGraphicsScene.cpp
index 44080a1a..43d0cf7d 100644
--- a/src/Authoring/Studio/Palettes/TimelineGraphicsView/TimelineGraphicsScene.cpp
+++ b/src/Authoring/Studio/Palettes/TimelineGraphicsView/TimelineGraphicsScene.cpp
@@ -522,6 +522,8 @@ void TimelineGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent *event)
m_rowManager->selectRow(rowTree, ctrlKeyDown);
if (rowTree->draggable())
m_startRowMoverOnNextDrag = true;
+ } else if (m_clickedTreeControlType == TreeControlType::Arrow) {
+ updateSnapSteps();
}
} else if (item->type() == TimelineItem::TypeRowTimeline) {
m_editedTimelineRow = static_cast<RowTimeline *>(item);
@@ -820,6 +822,9 @@ void TimelineGraphicsScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
}
}
+ if (m_timelineZooming)
+ updateSnapSteps();
+
resetMousePressParams();
QGraphicsScene::mouseReleaseEvent(event);