Commit ac732954 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Add Screen-FPS spinBox to control fps from the UI... Else it is pretty useless..

parent 3cc0b620
...@@ -953,6 +953,15 @@ void CaptureOpenPanel::initialize() ...@@ -953,6 +953,15 @@ void CaptureOpenPanel::initialize()
screenLabel->setWordWrap( true ); screenLabel->setWordWrap( true );
screenDevLayout->addWidget( screenLabel, 0, 0 ); screenDevLayout->addWidget( screenLabel, 0, 0 );
QLabel *screenFPSLabel = new QLabel(
qtr( "Desired frame rate for the capture." ) );
screenPropLayout->addWidget( screenFPSLabel, 0, 0 );
screenFPS = new QSpinBox;
screenFPS->setValue( 1 );
screenFPS->setAlignment( Qt::AlignRight );
screenPropLayout->addWidget( screenFPS, 0, 1 );
/* General connects */ /* General connects */
CONNECT( ui.deviceCombo, activated( int ) , CONNECT( ui.deviceCombo, activated( int ) ,
stackedDevLayout, setCurrentIndex( int ) ); stackedDevLayout, setCurrentIndex( int ) );
...@@ -1048,6 +1057,7 @@ void CaptureOpenPanel::updateMRL() ...@@ -1048,6 +1057,7 @@ void CaptureOpenPanel::updateMRL()
#endif #endif
case SCREEN_DEVICE: case SCREEN_DEVICE:
mrl = "screen://"; mrl = "screen://";
mrl += " :screen-fps=" + QString("%1").arg( screenFPS->value() );
updateButtons(); updateButtons();
break; break;
} }
...@@ -1096,7 +1106,7 @@ void CaptureOpenPanel::updateButtons() ...@@ -1096,7 +1106,7 @@ void CaptureOpenPanel::updateButtons()
break; break;
#endif #endif
case SCREEN_DEVICE: case SCREEN_DEVICE:
ui.optionsBox->hide(); //ui.optionsBox->hide();
ui.advancedButton->hide(); ui.advancedButton->hide();
break; break;
} }
......
...@@ -202,6 +202,7 @@ private: ...@@ -202,6 +202,7 @@ private:
QCheckBox *jackPace, *jackConnect; QCheckBox *jackPace, *jackConnect;
QLineEdit *jackPortsSelected; QLineEdit *jackPortsSelected;
#endif #endif
QSpinBox *screenFPS;
public slots: public slots:
virtual void updateMRL(); virtual void updateMRL();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment