196 QLabel *labelFramerate = new QLabel(pOptionsGroup); |
196 QLabel *labelFramerate = new QLabel(pOptionsGroup); |
197 labelFramerate->setText(QLabel::tr("Framerate")); |
197 labelFramerate->setText(QLabel::tr("Framerate")); |
198 pOptLayout->addWidget(labelFramerate, 6, 0); |
198 pOptLayout->addWidget(labelFramerate, 6, 0); |
199 |
199 |
200 // framerate |
200 // framerate |
201 framerateBox = new QSpinBox(pOptionsGroup); |
201 framerateBox = new QComboBox(pOptionsGroup); |
202 framerateBox->setRange(1, 200); |
202 framerateBox->addItem("24 fps", 24); |
203 framerateBox->setSingleStep(1); |
203 framerateBox->addItem("25 fps", 25); |
|
204 framerateBox->addItem("30 fps", 30); |
|
205 framerateBox->addItem("50 fps", 50); |
|
206 framerateBox->addItem("60 fps", 60); |
204 pOptLayout->addWidget(framerateBox, 6, 1); |
207 pOptLayout->addWidget(framerateBox, 6, 1); |
205 |
208 |
206 // label for Bitrate |
209 // label for Bitrate |
207 QLabel *labelBitrate = new QLabel(pOptionsGroup); |
210 QLabel *labelBitrate = new QLabel(pOptionsGroup); |
208 labelBitrate->setText(QLabel::tr("Bitrate (Kbps)")); |
211 labelBitrate->setText(QLabel::tr("Bitrate (Kbps)")); |
446 tryCodecs("ogg", "libtheora", "flac"); |
449 tryCodecs("ogg", "libtheora", "flac"); |
447 } |
450 } |
448 |
451 |
449 void PageVideos::setDefaultOptions() |
452 void PageVideos::setDefaultOptions() |
450 { |
453 { |
451 framerateBox->setValue(30); |
454 framerateBox->setCurrentIndex(2); //set to 30fps |
452 bitrateBox->setValue(1000); |
455 bitrateBox->setValue(1000); |
453 checkRecordAudio->setChecked(true); |
456 checkRecordAudio->setChecked(true); |
454 checkUseGameRes->setChecked(true); |
457 checkUseGameRes->setChecked(true); |
455 setDefaultCodecs(); |
458 setDefaultCodecs(); |
456 } |
459 } |