summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Render/Q3DSTranslation.cpp
diff options
context:
space:
mode:
authorMäättä Antti <antti.maatta@qt.io>2018-09-05 11:53:02 +0300
committerAntti Määttä <antti.maatta@qt.io>2018-09-11 12:18:22 +0000
commit286be43ee08e748b1d4f6e9a04da6e6fba5c1b40 (patch)
tree8000f09c49bd725ffeb2b8853aabb75c0b5d335d /src/Authoring/Studio/Render/Q3DSTranslation.cpp
parent5c628848b7b989680a00d383a5a3c83c3d780471 (diff)
Fix scrollbars
Add edit cameras so that old codes do not disable the scrollbars. Change-Id: I415fb6bac3018ba14915b37db9ee74f23ed6fd0a Reviewed-by: Antti Määttä <antti.maatta@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Render/Q3DSTranslation.cpp')
-rw-r--r--src/Authoring/Studio/Render/Q3DSTranslation.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Render/Q3DSTranslation.cpp b/src/Authoring/Studio/Render/Q3DSTranslation.cpp
index dbdcca35..235d5a3b 100644
--- a/src/Authoring/Studio/Render/Q3DSTranslation.cpp
+++ b/src/Authoring/Studio/Render/Q3DSTranslation.cpp
@@ -1780,7 +1780,7 @@ void Q3DSTranslation::clearDirtySet()
m_dirtySet.clear();
}
-void Q3DSTranslation::render()
+void Q3DSTranslation::prepareRender(const QRect &rect, const QSize &size)
{
if (!m_scene)
return;
@@ -1790,6 +1790,11 @@ void Q3DSTranslation::render()
m_engine->setProfileUiVisible(true, true);
m_studioRenderer.SetViewRect(m_studioRenderer.viewRect());
}
+ if (rect != m_rect || size != m_size) {
+ m_engine->sceneManager()->updateSizes(size, 1.0, rect, true);
+ m_rect = rect;
+ m_size = size;
+ }
}
}