Skip to content
Snippets Groups Projects
Commit a31b7561 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen
Browse files

RendererSettings: Read AudioBitrate and VideoBitrate from the project


Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent a6611e19
No related branches found
No related tags found
No related merge requests found
......@@ -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" ) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment