summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Authoring/Studio/Palettes/TimelineGraphicsView/RowManager.cpp')
-rw-r--r--src/Authoring/Studio/Palettes/TimelineGraphicsView/RowManager.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowManager.cpp b/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowManager.cpp
index cf6aa893..479fed20 100644
--- a/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowManager.cpp
+++ b/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowManager.cpp
@@ -260,7 +260,10 @@ void RowManager::clearSelection()
m_selectedRows.clear();
}
-void RowManager::updateRulerDuration()
+// Updates duration of ruler
+// When you don't want to update max duration (so width of timeline, scrollbar)
+// set updateMaxDuration to false.
+void RowManager::updateRulerDuration(bool updateMaxDuration)
{
double duration = 0;
double maxDuration = 0; // for setting correct size for the view so scrollbars appear correctly
@@ -279,7 +282,9 @@ void RowManager::updateRulerDuration()
}
}
- m_scene->ruler()->setDuration(duration, maxDuration);
+ m_scene->ruler()->setDuration(duration);
+ if (updateMaxDuration)
+ m_scene->ruler()->setMaxDuration(maxDuration);
}
void RowManager::updateFiltering(RowTree *row)