[vlmc-devel] [PATCH 06/12] RendererSettings: Set fps, height and width to the project's settings if they are acceptable

Yikai Lu luyikei.qmltu at gmail.com
Wed Apr 6 09:58:19 CEST 2016


---
 src/Gui/export/RendererSettings.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/Gui/export/RendererSettings.cpp b/src/Gui/export/RendererSettings.cpp
index 7a8959e..7960726 100644
--- a/src/Gui/export/RendererSettings.cpp
+++ b/src/Gui/export/RendererSettings.cpp
@@ -111,12 +111,20 @@ RendererSettings::updateVideoPreset( int index )
 void
 RendererSettings::accept()
 {
+    auto project = Core::instance()->project();
+
     if ( width() <= 0 || height() <= 0 || fps() <= .0f )
     {
         QMessageBox::warning( this, tr( "Invalid parameters" ),
                               tr( "Please enter valid rendering parameters" ) );
         return;
     }
+    else
+    {
+        project->setFps( fps() );
+        project->setHeight( height() );
+        project->setWidth( width() );
+    }
 
     QFileInfo fileInfo( m_ui.outputFileName->text() );
 
-- 
1.9.1



More information about the Vlmc-devel mailing list