summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-05-28 10:10:18 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-05-28 07:26:51 +0000
commita3d7aaaf7175c80f24d8bf2eff50f0795d7f34c7 (patch)
tree100afb8cfc2641e01490fc5cbd4ad3f202f089c4
parenta2421d10b000243209c254d47b8244470222ef57 (diff)
Don't start drag or select the row when clicking on expansion arrow
Task-number: QT3DS-1797 Change-Id: I814ce0fba568ec52049905f8bb4d8e4d48d3189f Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r--src/Authoring/Studio/Palettes/TimelineGraphicsView/TimelineGraphicsScene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Palettes/TimelineGraphicsView/TimelineGraphicsScene.cpp b/src/Authoring/Studio/Palettes/TimelineGraphicsView/TimelineGraphicsScene.cpp
index 0203b572..dc200366 100644
--- a/src/Authoring/Studio/Palettes/TimelineGraphicsView/TimelineGraphicsScene.cpp
+++ b/src/Authoring/Studio/Palettes/TimelineGraphicsView/TimelineGraphicsScene.cpp
@@ -332,7 +332,7 @@ void TimelineGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent *event)
|| m_clickedTreeControlType == TreeControlType::Hide
|| m_clickedTreeControlType == TreeControlType::Lock) {
m_rowManager->updateFiltering(rowTree);
- } else {
+ } else if (m_clickedTreeControlType == TreeControlType::None) {
// Prepare to change selection to single selection at release if a multiselected
// row is clicked without ctrl.
if (!ctrlKeyDown && m_rowManager->isRowSelected(rowTree)