diff options
author | Antti Määttä <antti.maatta@qt.io> | 2019-05-03 15:27:20 +0300 |
---|---|---|
committer | Antti Määttä <antti.maatta@qt.io> | 2019-05-07 08:54:04 +0000 |
commit | 4fee4ed98630e9f65d3a178f46e97fb78ec4fa31 (patch) | |
tree | dec4754ae3d01f5378300e234807e2def25dd96e | |
parent | ee62a1cd82e7f6dc3b16d9935fc148f3c48c8f46 (diff) |
Add presentationLoaded to Q3DSSurfaceViewer
Task-number: QT3DS-3260
Change-Id: I4db352a640d62fde91d113865a985386ba24c512
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
-rw-r--r-- | src/Viewer/studio3d/q3dssurfaceviewer.cpp | 2 | ||||
-rw-r--r-- | src/Viewer/studio3d/q3dssurfaceviewer.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/Viewer/studio3d/q3dssurfaceviewer.cpp b/src/Viewer/studio3d/q3dssurfaceviewer.cpp index 546d92d1..d17f069e 100644 --- a/src/Viewer/studio3d/q3dssurfaceviewer.cpp +++ b/src/Viewer/studio3d/q3dssurfaceviewer.cpp @@ -360,6 +360,8 @@ bool Q3DSSurfaceViewerPrivate::initializeRuntime() m_context->makeCurrent(m_surface); m_viewerApp = &Q3DSViewerApp::Create(m_context, new Qt3DSAudioPlayerImpl(), &m_startupTimer); + connect(m_viewerApp, &Q3DSViewerApp::SigPresentationReady, + this->q_ptr, &Q3DSSurfaceViewer::presentationLoaded); Q_ASSERT(m_viewerApp); diff --git a/src/Viewer/studio3d/q3dssurfaceviewer.h b/src/Viewer/studio3d/q3dssurfaceviewer.h index fc99ccaf..1a43c4cd 100644 --- a/src/Viewer/studio3d/q3dssurfaceviewer.h +++ b/src/Viewer/studio3d/q3dssurfaceviewer.h @@ -87,6 +87,7 @@ public Q_SLOTS: void setPresentationId(const QString &id); Q_SIGNALS: + void presentationLoaded(); void sizeChanged(const QSize &size); void autoSizeChanged(bool autoSize); void updateIntervalChanged(bool autoUpdate); |