1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

update video mode on manual change , closes #2046

This commit is contained in:
agilob 2015-10-11 07:58:36 +01:00
parent cffac87cbd
commit 73993e8b5d
No known key found for this signature in database
GPG Key ID: 296F0B764741106C
2 changed files with 4 additions and 2 deletions

View File

@ -58,6 +58,8 @@ AVForm::AVForm() :
connect(bodyUI->inDevCombobox, qcbxIndexChangedStr, this, &AVForm::onInDevChanged);
connect(bodyUI->outDevCombobox, qcbxIndexChangedStr, this, &AVForm::onOutDevChanged);
connect(bodyUI->videoDevCombobox, qcbxIndexChangedInt, this, &AVForm::onVideoDevChanged);
connect(bodyUI->videoModescomboBox, qcbxIndexChangedInt, this, &AVForm::onVideoModesIndexChanged);
connect(bodyUI->filterAudio, &QCheckBox::toggled, this, &AVForm::onFilterAudioToggled);
connect(bodyUI->rescanButton, &QPushButton::clicked, this, [=](){getAudioInDevices(); getAudioOutDevices();});
bodyUI->playbackSlider->setValue(100);
@ -87,7 +89,7 @@ void AVForm::showEvent(QShowEvent*)
getVideoDevices();
}
void AVForm::on_videoModescomboBox_currentIndexChanged(int index)
void AVForm::onVideoModesIndexChanged(int index)
{
if (index<0 || index>=videoModes.size())
{

View File

@ -52,7 +52,6 @@ private:
void retranslateUi();
private slots:
void on_videoModescomboBox_currentIndexChanged(int index);
// audio
void onInDevChanged(const QString& deviceDescriptor);
@ -63,6 +62,7 @@ private slots:
// camera
void onVideoDevChanged(int index);
void onVideoModesIndexChanged(int index);
//void onResProbingFinished(QList<QSize> res);
virtual void hideEvent(QHideEvent*) final override;