[vlmc-devel] [PATCH 5/5] RendererSettings: Read AudioBitrate and VideoBitrate from the project
Yikai Lu
luyikei.qmltu at gmail.com
Wed Apr 6 13:59:06 CEST 2016
---
src/Gui/export/RendererSettings.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/Gui/export/RendererSettings.cpp b/src/Gui/export/RendererSettings.cpp
index 7a8959e..1a14a94 100644
--- a/src/Gui/export/RendererSettings.cpp
+++ b/src/Gui/export/RendererSettings.cpp
@@ -51,6 +51,8 @@ RendererSettings::RendererSettings( bool shareOnInternet )
m_ui.width->setValue( project->width() );
m_ui.height->setValue( project->height() );
m_ui.fps->setValue( project->fps() );
+ m_ui.videoQuality->setValue( project->videoBitrate() );
+ m_ui.audioQuality->setValue( project->audioBitrate() );
QCompleter* completer = new QCompleter( this );
completer->setModel( new QDirModel( completer ) );
@@ -111,7 +113,7 @@ RendererSettings::updateVideoPreset( int index )
void
RendererSettings::accept()
{
- if ( width() <= 0 || height() <= 0 || fps() <= .0f )
+ if ( width() <= 0 || height() <= 0 || fps() <= .0f || audioBitrate() <= 0 || videoBitrate() <= 0 )
{
QMessageBox::warning( this, tr( "Invalid parameters" ),
tr( "Please enter valid rendering parameters" ) );
--
1.9.1
More information about the Vlmc-devel
mailing list