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, 9 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowManager.cpp b/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowManager.cpp
index 0c85f225..6c4437b2 100644
--- a/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowManager.cpp
+++ b/src/Authoring/Studio/Palettes/TimelineGraphicsView/RowManager.cpp
@@ -366,6 +366,15 @@ RowTree *RowManager::selectedRow() const
return nullptr;
}
+bool RowManager::isComponentRoot() const
+{
+ if (m_layoutTree->count() > 1) {
+ RowTree *root = static_cast<RowTree *>(m_layoutTree->itemAt(1)->graphicsItem());
+ return root->rowType() == OBJTYPE_COMPONENT;
+ }
+ return false;
+}
+
bool RowManager::isRowSelected(RowTree *row) const
{
return m_selectedRows.contains(row);