summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/UI
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-10-25 17:54:56 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-11-02 09:54:56 +0000
commit3ddad604c29761f1069fe88b27e6f9d44c0dbe82 (patch)
tree4d600fde9849f9cc87180a469d84c64785cb53de /src/Authoring/Studio/UI
parent74e92c8d0d879dc0bc5bc3dd9612f7a65dbf349c (diff)
Implement scene camera tab
The scene camera tab on the bottom dockable area provides a zoomable pixel perfect view of the scene camera. Task-number: QT3DS-709 Change-Id: I7d96464e8208b9e57a1bd980fc6b71656028e49a Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Authoring/Studio/UI')
-rw-r--r--src/Authoring/Studio/UI/PlayerWnd.cpp2
-rw-r--r--src/Authoring/Studio/UI/PlayerWnd.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/Authoring/Studio/UI/PlayerWnd.cpp b/src/Authoring/Studio/UI/PlayerWnd.cpp
index 5e1f0c51..a528cea1 100644
--- a/src/Authoring/Studio/UI/PlayerWnd.cpp
+++ b/src/Authoring/Studio/UI/PlayerWnd.cpp
@@ -242,6 +242,8 @@ void CPlayerWnd::paintGL()
Q3DStudio::IStudioRenderer &theRenderer(g_StudioApp.getRenderer());
// Don't use request render here, this has to be synchronous inside paintGL
theRenderer.RenderNow();
+
+ Q_EMIT newFrame();
}
qreal CPlayerWnd::fixedDevicePixelRatio() const
diff --git a/src/Authoring/Studio/UI/PlayerWnd.h b/src/Authoring/Studio/UI/PlayerWnd.h
index 81eec6bc..de005220 100644
--- a/src/Authoring/Studio/UI/PlayerWnd.h
+++ b/src/Authoring/Studio/UI/PlayerWnd.h
@@ -50,6 +50,7 @@ public:
~CPlayerWnd();
void setContainerWnd(CPlayerContainerWnd *inSceneView);
+ CPlayerContainerWnd *containerWnd() const { return m_containerWnd; }
QSize sizeHint() const override;
@@ -70,6 +71,7 @@ protected:
Q_SIGNALS:
void dropReceived();
+ void newFrame();
protected:
void mouseMoveEvent(QMouseEvent *event) override;