diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-08-21 14:14:37 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-08-22 09:26:34 +0000 |
commit | 77891628d59d3289b4598990a8c34328981c015f (patch) | |
tree | 73e2f6e1b9d0ae00d280835e7ba9e84a7ff3afab /src/Authoring/Studio/Palettes/TimelineGraphicsView/RowMover.cpp | |
parent | 8ae7535ea95ca37cd7dd911d767aebce45b3d52c (diff) |
Autoexpand rows when dragging presentations
Task-number: QT3DS-2101
Change-Id: Id39a40edc2c565e8e89b83c8caf2d0d931ff7962
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/TimelineGraphicsView/RowMover.cpp')
-rw-r--r-- | src/Authoring/Studio/Palettes/TimelineGraphicsView/RowMover.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowMover.cpp b/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowMover.cpp index 1046996b..70ef517e 100644 --- a/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowMover.cpp +++ b/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowMover.cpp @@ -209,8 +209,12 @@ void RowMover::updateTargetRow(const QPointF &scenePos, EStudioObjectType rowTyp || rowAtMouse->rowType() == OBJTYPE_IMAGE) { m_insertionTarget->setDnDState(RowTree::DnDState::SP_TARGET); } + m_rowAutoExpand = rowAtMouse; + m_autoExpandTimer.start(TimelineConstants::AUTO_EXPAND_TIME); + } else { + m_rowAutoExpand = nullptr; + m_autoExpandTimer.stop(); } - return; } |