QTfrontend/ui/page/pagevideos.cpp
changeset 7633 d4251e519062
parent 7631 01b599d6f72d
child 7679 bfa26daad684
equal deleted inserted replaced
7632:81e5e7092023 7633:d4251e519062
   201         framerateBox = new QSpinBox(pOptionsGroup);
   201         framerateBox = new QSpinBox(pOptionsGroup);
   202         framerateBox->setRange(1, 200);
   202         framerateBox->setRange(1, 200);
   203         framerateBox->setSingleStep(1);
   203         framerateBox->setSingleStep(1);
   204         pOptLayout->addWidget(framerateBox, 6, 1);
   204         pOptLayout->addWidget(framerateBox, 6, 1);
   205 
   205 
       
   206         // label for Bitrate
       
   207         QLabel *labelBitrate = new QLabel(pOptionsGroup);
       
   208         labelBitrate->setText(QLabel::tr("Bitrate (Kbps)"));
       
   209         pOptLayout->addWidget(labelBitrate, 6, 2);
       
   210 
       
   211         // bitrate
       
   212         bitrateBox = new QSpinBox(pOptionsGroup);
       
   213         bitrateBox->setRange(100, 5000);
       
   214         bitrateBox->setSingleStep(100);
       
   215         pOptLayout->addWidget(bitrateBox, 6, 3);
       
   216 
   206         // button 'set default options'
   217         // button 'set default options'
   207         btnDefaults = new QPushButton(pOptionsGroup);
   218         btnDefaults = new QPushButton(pOptionsGroup);
   208         btnDefaults->setText(QPushButton::tr("Set default options"));
   219         btnDefaults->setText(QPushButton::tr("Set default options"));
   209         pOptLayout->addWidget(btnDefaults, 7, 0, 1, 5);
   220         pOptLayout->addWidget(btnDefaults, 7, 0, 1, 5);
   210 
   221 
   430 }
   441 }
   431 
   442 
   432 void PageVideos::setDefaultOptions()
   443 void PageVideos::setDefaultOptions()
   433 {
   444 {
   434     framerateBox->setValue(25);
   445     framerateBox->setValue(25);
       
   446     bitrateBox->setValue(400);
   435     checkRecordAudio->setChecked(true);
   447     checkRecordAudio->setChecked(true);
   436     checkUseGameRes->setChecked(true);
   448     checkUseGameRes->setChecked(true);
   437     setDefaultCodecs();
   449     setDefaultCodecs();
   438 }
   450 }
   439 
   451