equal
deleted
inserted
replaced
139 } |
139 } |
140 } |
140 } |
141 |
141 |
142 void GameUIConfig::reloadVideosValues(void) |
142 void GameUIConfig::reloadVideosValues(void) |
143 { |
143 { |
144 Form->ui.pageVideos->framerateBox->setValue(value("videorec/fps",25).toUInt()); |
144 Form->ui.pageVideos->framerateBox->setCurrentIndex(1); //set to 25 fps |
|
145 |
145 Form->ui.pageVideos->bitrateBox->setValue(value("videorec/bitrate",400).toUInt()); |
146 Form->ui.pageVideos->bitrateBox->setValue(value("videorec/bitrate",400).toUInt()); |
146 bool useGameRes = value("videorec/usegameres",true).toBool(); |
147 bool useGameRes = value("videorec/usegameres",true).toBool(); |
147 if (useGameRes) |
148 if (useGameRes) |
148 { |
149 { |
149 QRect res = vid_Resolution(); |
150 QRect res = vid_Resolution(); |
527 return res; |
528 return res; |
528 } |
529 } |
529 |
530 |
530 int GameUIConfig::rec_Framerate() |
531 int GameUIConfig::rec_Framerate() |
531 { |
532 { |
532 return Form->ui.pageVideos->framerateBox->value(); |
533 return Form->ui.pageVideos->framerateBox->itemData(Form->ui.pageVideos->framerateBox->currentIndex()).toUInt(); |
533 } |
534 } |
534 |
535 |
535 int GameUIConfig::rec_Bitrate() |
536 int GameUIConfig::rec_Bitrate() |
536 { |
537 { |
537 return Form->ui.pageVideos->bitrateBox->value(); |
538 return Form->ui.pageVideos->bitrateBox->value(); |